DiscordTT (Tohru) is a Discord bot with an extensive list of commands, including server moderation and a music DJing feature based on Turntable.fm. The bot is still in active development, and some features may not work as expected.
The bot itself is built in node.js, and uses the discord.js library to interface with Discord.
To install the bot:
- Clone/fork this project.
- Install required external dependencies (see below).
- Run
npm install
in the project's base directory. - Add a
config.json
file to the project's base directory (see below). - Run
npm start
to start the bot.
The bot requires the following external dependencies to be installed:
- node.js >= 8.0.0
- npm
- Redis
- ffmpeg
To use all of the bot's features, you will need to obtain an API key for the following services:
- Discord
- Google - Google Static Maps API, YouTube Data API, Google Maps Geocoding API
- OpenWeatherMap
- Dark Sky
- MyAnimeList.net - Does not provide API keys. Create an account for your bot and use those credentials.
The bot reads config values from the config.json
file in the project's root directory. A sample config file is provided below.
{
"discord": {
"credentials": {
"token": "YourBotToken"
}
},
"api": {
"google": "",
"openweathermap": "",
"darksky": "",
"myanimelist": {
"username": "",
"password": ""
}
},
"turntable": {
"maxDjs": "3",
"songsPerDj": null,
"baseVolume": "-13"
},
"prefix": "/",
"admins": ["YourDiscordID"]
}