A discord bot build with node.js
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.
 
 
 
Go to file
Trivernis 657c08ac96
Merge pull request #22 from Trivernis/renovate/node-10.x
Update Node.js to v10.15 (CircleCI Docker Image)
6 years ago
.circleci Update Node.js to v10.15 6 years ago
commands Command Promises 6 years ago
lib Changes to lib/music for CI 6 years ago
testscripts Added lib/guilding testscript 6 years ago
.gitignore New command syntax 6 years ago
LICENSE Create LICENSE 6 years ago
README.md Added CircleCi and Codefactor Badge to Readme 6 years ago
bot.js Rich Embed for help command 6 years ago
package.json TestScripts 1 6 years ago
renovate.json Add renovate.json 6 years ago

README.md

discordbot CircleCI CodeFactor

A bot that does the discord thing.

node bot.js [--token=<DiscordBotToken>] [--ytapi=<GoogleApiKey>] [--owner=<DiscordTag>] [--prefix=<Char>] [--game=<String>]

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": "_",
  "token": "DISCORD BOT TOKEN",
  "ytapikey": "YOUTUBE API KEY",
  "presence": "THE DEFAULT GAME IF NO presences.txt IS FOUND IN ./data/",
  "presence_duration": 300000,
  "owners": [
    "SPECIFY A LIST OF BOT-OWNERS"
  ],
  "music": {
    "timeout": 300000
  }
}

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