Follow this guide if you wish to help with the development of this community project.
The main goal of this project is to encourage our community members to participate in the development to learn something new, to contribute to the community, or just to getting started with open source.
This bot was kicked off to meet the needs of our community, but we thought on the long run that other communities may benefit from our project as well. We decided then to develop it in a more flexible way.
Any community on Discord could use a little help managing the day to day activities and delivering to its user the best possible experience.
There's a lot of bots available out there, but carelessly adding bots to gather all the features we like might be cumbersome and add too much overhead.
This project aims to reduce this overhead developing a bot for the community and with the community.
To contribute to the code you'll need to:
- Setup your local machine
- Create for free a Discord developer account
- Get a token for your development bot
- Create a Discord server, for testing purposes
- Invite the bot to your server
All of this will be explained step-by-step.
If you made this far you most likely know the drill:
-
Install the latest Node.js LTS (using nvm or similar library is highly recommended).
-
Clone this repository
-
Execute
npm install
Here's a walkthrough to get up and running with Discord:
-
Sign up or login to Discord Developer Portal, you can also use the QR code provided for logging in via mobile app.

-
Specify a name for your application (e.g. VanillaDev) and click Create.

-
This is how your app overview looks like, do not share client secret under any circumstance.

-
This is how your bot overview looks like, do not share token under any circumstance.

For further information please refer to the official Discord documentation.
For local development you need to provide your bot token as follows:
-
Open your browser.
-
Navigate to your dashboard on Discord Developer Portal.
-
Select the application you created.
-
Navigate to the Bot section.
-
Open your IDE or editor of choice (e.g. Visual Studio Code).
-
Open the folder where you cloned this repository.
-
In the root folder, rename the file called
.env-exampleto.env. -
Open the file
.env. -
Paste the token you copied on
PASTE_HERE_YOUR_TOKEN, be careful to leave no blank spaces.
-
Open Discord client.
-
Click on Appearance, then scroll down and enable Developer Mode.

-
Go to any server you joined and find your avatar on the user list on the right.
-
Right click on your avatar, then click Copy ID to copy your user ID.

-
Open your IDE or editor of choice.
-
Open the folder where you cloned this repository.
-
Open the file
.env. -
Paste the user ID you copied on
PASTE_HERE_YOUR_OWNER_ID, be careful to leave no blank spaces.
You need a Discord server to test your bot. To create one follow these steps:
-
Open your Discord client.
-
Click the
+icon in the bottom left.
A Discord bot is like a special user that needs to be invited to your server with a specific set of permissions, depending on the bot functionalities.
Here's a walkthrough:
-
Open your browser.
-
Navigate to your dashboard on Discord Developer Portal.
-
Select the application you created.
-
Navigate to the section OAuth2.
-
Click Copy underneath CLIENT ID.
-
Navigate to Discord Permissions Calculator, to facilitate this link has already been set with the correct permissions for this project.

-
Paste the Client ID you copied in the proper field.
-
Click the link.
-
In the new page you'll be prompted to login to Discord.
-
Select via dropdown the server you want to add your bot to and click Continue.

-
Complete the reCaptcha to proceed.
Checking your server on Discord client your bot appears now as an offline user.
It's time to bring your bot online.
To bring your bot online for development:
-
Open a terminal.
-
Navigate to the folder where you cloned this repository.
-
Execute
npm run dev.
Your bot appears now as an online user and you can interact with it.
Congratulations!






