A multipurpose bot for a private Discord server.
From the root of the cloned repository run "npm install" which will use the include package.json file to get all of your dependencies installed.
Discord.js is a node js library for interacting with Discord's API. Winston is a popular logging module.
Example:
MacBook:SDG_Discord_Bot awesomeUser$ npm install
shame_bot@0.5.0 /Users/awesomeUser/SDG_Discord_Bot
├── discord.js@11.2.1
└── winston@2.2.0
└── mongodb@2.1.21
Note: you can ignore the warnings about missing peer modules as these are optional for discord JS. They are used for Voice Support.
If you are having issues check the install steps for Discord.js here
After the dependencies are installed you are nearly ready to run the Shamebot but currently there are two items that need to be handled:
MacBook:SDG_Discord_Bot awesomeUser$ touch auth.json
{
"token" : "your bot token",
"steamAPIKey" : "your Steam API key"
"giphyAPIKey : your giphy API key"
}
These will be fixed at a later date but for now the above is needed to properly run the bot.
Before starting up the bot you will need to be running mongodb locally as the bot will look at mongodb://localhost:27017/shamebotdb To start MongoDB go into the bin file and run mongod.exe.
Then simply run the bot and you should see it connect:
MacBook:SDG_Discord_Bot awesomeUser$ node SDGDiscordBot.js
info: || -- Shamebot ready for input at Thu May 12 2016 12:03:32 GMT-0400 (EDT) -- ||
ShameBot comes equipped with a help command to list possible commands:
@AwesomeUser, Available commands (all commands start with !) :
help
uptime