As a developer for Cross Crusaders, I had the opportunity to help out the Discord server by creating a bot for them. However, I love open source. And that is why you are even reading this. This source code is mostly unmodified from what is actually used in the server (I say "mostly" because I removed the token from the .env
file). This source code can be used by anyone and they don't need to credit me.
- Install the latest version of Node.js.
- Clone this repository to your device.
- Open up the root directory of the repository in either CMD(Windows) or Terminal(macOS or Linux).
- Create a discord application by going here and clicking "New Application".
- Follow the steps on screen.
- Once your application is created, go to the side menu and click "Bot" then click "Add Bot".
- Now click "Reset Token" and follow the steps.
- When that is done, copy the token and paste it as the value of the
Bot_Token
variable in the.env
file. - Back in the Developer Portal, copy the application ID of your application.
- Paste that in the
.env
file as the variableBot_ID
. - Set all the other variables to work with your server. (Variables that need changed can be found in many files throughout the bot's code. All of the IDs outside of the
.env
file are just role IDs that will need changed) - Back in CMD/Terminal, run
npm i
,npm run setup
, andnpm start
. - Your bot is now running!
If you are having issues with setting up the bot/bugs, you can create an issue on this repository and I will look over them and help in the respective manner.