Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

lille-morille/moris_slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moris_slave

A Discord Bot for the #Anti-Java Server

This is a free and open source discord bot made by and for students in the Computer Engineering class of NTNU, but other students are of course more than welcome to join in.

How to contribute

Since the bot is for everyone, feel free to suggest any features or callout bugs in the issues section. We love collaboration <3. And if you wish to contribute with coding, we have a guide to get started below.

How to get started

Because the bot runs on our main servers, its credentials remain confidential. However, you can create your own testing bot to try out the code on your own machine.

Steps:

  1. Go to The Discord Dev Portal and create your own application

  2. Make the bot private, and not requiring an oauth2 grant. You'll find this under the bot sidebar-tab. private <<<<<<< Updated upstream

  3. Go ahead and reset the token to get a new one. Keep this token in a secure place!token

  4. Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.scopesurl

  5. Go to Discord and create your own server. Once this is done, paste the OAuth2 Link copied above into your browser, to add the bot to your server.

  6. Now it's time to jump into the code. Using the token copied above, fork this project from GitHub to your local machine, jump into it, and create a .env file at the root of the project. Add the line ACCESS_TOKEN={your token}, where your token is the token you copied. Also add the line CLIENT_ID={your client id}. Your client id can be found in the discord dev portal under your bot. You will find this as the Application Id.application_id

  7. Make sure you have Node.js on your machine along with npm or yarn.

  8. Use npm run dev or yarn dev to run the project. If everything has been set up correctly, your bot should appear online on your server, and application commands should be available. =======

  9. Go ahead and reset the token to get a new one. Keep this token in a secure place!token

  10. Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.

    scopes url

  11. Go to Discord and create your own server. Once this is done, paste the OAuth2 Link copied above into your browser, to add the bot to your server.

  12. Now it's time to jump into the code. Using the token copied above, fork this project from GitHub to your local machine, jump into it, and create a .env file at the root of the project. Add the line ACCESS_TOKEN={your token}, where your token is the token you copied. Also add the line CLIENT_ID={your client id}. Your client id can be found in the discord dev portal under your bot. You will find this as the Application Id.

    application_id

Your .env file should now look something like this:

ACCESS_TOKEN=3JKLWKkfjkfdklsf89sd83lkl3kjnklsfnmdls
CLIENT_ID=5jk43lwvn9df0v9ewmjk34l2knjgd8si0un89302o
  1. Make sure you have Node.js on your machine along with npm or yarn. Google this for your OS if you're unsure.
  2. Run npm installor yarn to install all dependencies for this project.
  3. Use npm run dev or yarn dev to run the project. If everything has been set up correctly, your bot should appear online on your server, and application commands should be available.

Feel free to contact the owner of this repo - lille-morille on discord - if you have any questions or things aren't working.

Stashed changes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •