Skip to content

A Discord bot written in node.js using discord.js & patron.js

License

Notifications You must be signed in to change notification settings

FozzieHi/Shadow

Repository files navigation

Shadow Build Status

A Discord bot written in node.js using discord.js & patron.js

How to run

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

About

A Discord bot written in node.js using discord.js & patron.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published