A Discord bot written in node.js using discord.js & patron.js
Create a file called credentials.json in the src folder.
Copy these contents over, replacing exampletoken with a Discord Bot's token you have created and mongodb://connection-url with the MongoDB connection URL for MongoDB 2.2.12 or later.
{
"mongoConnectionURL": "mongodb://connection-url",
"dbName": "databaseName",
"token": "exampletoken"
}You will need to create the following MongoDB collections: guilds, users, mutes, bans. This can be done by changing collection() to createCollection() in src/database/db/Database.js for the first run of the bot. After this, change the code back to use the collections as usual with collection().
To run the bot use node . or node src/index.js