A simple discord bot of mine developed with discord.js (Node.js).
I mainly use it to get the active developer badge on Discord.
You can invite the bot to your server using THIS link.
The bot requires administartor permissions.
I'm hosting it, should be online 24/7.
Do the following for setting up the application from sratch:
Create a config.json
file in the repo's folder and paste the content above, then fill it out with the correct details:
{
"token" : "[your token]",
"clientId" : "[your client id]",
"databaseHostAddress" : "[database host ip]:[database host port]",
"databaseName" : "[database name]",
"databaseUser" : "[database username]",
"databasePassword" : "[database user's password]",
"logToFile" : "[True/False]",
"logToDatabase" : "[True/False]"
}
npm i
command.Some of the bot's features require a MariaDB database.
If you already have a working database, and filled up the details in the config.json
file for the connection, you can run npm run create-tables
.
This will automatically create the tables based on the SQL queries that can be found in the sql folder.
Otherwise, please refer to THIS documentation for addittional help about setting up a database.
If everything above checks out, you can prepare for the first run:
npm run deploy
. You might want to do this again if you modify / add commands.npm run app
.