You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d5d5c12126
- removed previous testfiles - added test.js where all tests are stored - added tests for lib/utils - added standard test config - added test config to devDependencies in package.json - reconfigured circleci configuration |
6 years ago | |
---|---|---|
.circleci | 6 years ago | |
commands | 6 years ago | |
lib | 6 years ago | |
test | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
bot.js | 6 years ago | |
package.json | 6 years ago | |
renovate.json | 6 years ago |
README.md
discordbot
A bot that does the discord thing.
node bot.js [--token=<DiscordBotToken>] [--ytapi=<GoogleApiKey>] [--owner=<DiscordTag>] [--prefix=<Char>] [--game=<String>] [-i=<Boolen>]
The arguments are optional because the token and youtube-api-key that the bot needs to run can also be defined in the config.json in the bot's directory:
// config.json
{
"prefix": "_",
"presence": "STRING", // this will be shown when no presences are set in data/presences.txt
"presence_duration": 300000, // how long does the bot have one presence
"api": {
"botToken": "YOUR DISCORD BOT TOKEN",
"youTubeApiKey": "YOUR YOUTUBE API KEY"
},
"owners": [
"DISCORD NAME" // specify a list of bot owners that can use the owner commands
],
"music": {
"timeout": 300000
}
}
If the keys are missing from the config file, the bot exits. This behaviour can be deactivated by setting the -i
commandline flag.
Keys
You can get the API-Keys here:
Features
At the moment the bot can...
- ...play music (YouTube videos and playlists)
- ...save songs/playlists with a given name
- ...log stuff in a database
- ...transform into a cow
Ideas
- command replies saved in file (server specific file and global file)
- reddit api
- anilist api
- othercoolstuff api