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.
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.
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:
-
Go to The Discord Dev Portal and create your own application
-
Make the bot private, and not requiring an oauth2 grant. You'll find this under the bot sidebar-tab. <<<<<<< Updated upstream
-
Go ahead and reset the token to get a new one. Keep this token in a secure place!
-
Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.
-
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.
-
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.
-
Make sure you have Node.js on your machine along with npm or yarn.
-
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. =======
-
Go ahead and reset the token to get a new one. Keep this token in a secure place!
-
Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.
-
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.
-
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.
Your .env file should now look something like this:
ACCESS_TOKEN=3JKLWKkfjkfdklsf89sd83lkl3kjnklsfnmdls
CLIENT_ID=5jk43lwvn9df0v9ewmjk34l2knjgd8si0un89302o
- Make sure you have Node.js on your machine along with npm or yarn. Google this for your OS if you're unsure.
- Run
npm install
oryarn
to install all dependencies for this project. - Use
npm run dev
oryarn 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