Bot for discord using discordjs
Clone or download
Latest commit ff24600 Dec 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Remove redmine, update dependancies Oct 28, 2018
src Remove bm command Dec 6, 2018
.editorconfig Update to 1.2.0. Nov 10, 2017
.eslintrc.js feat : add command handler Feb 22, 2018
.gitignore feat: update dependencies May 27, 2018
.prettierrc Remove redmine, update dependancies Oct 28, 2018
CHANGELOG.md Remove bm command Dec 6, 2018
README.md Remove bm command Dec 6, 2018
package.json Remove bm command Dec 6, 2018

README.md

Bot-Discord

Installation

$ git clone https://github.com/Enishowk/Bot-Discord.git
$ cd Bot-Discord
$ npm install
$ npm install -g ytdl
  • Don't forget to rename config.json.dist to config.json and add your Token.
  • Create a sound folder with your different sound.

To start the bot in background with pm2.

$ pm2 start src/bot.js

Check PM2 Wiki for more command.

Command

  • .beshop - Get random joke.
  • .bitcoin - Get value of Bitcoin.
  • .gouter - Joke command for french.
  • .help [sound] - Command list. Sound list with sound param.
  • .meteo [city] - Return Weather for City param.
  • .play [sound] - Play a sound in Voice channel.
  • .rand [number] - Simple rand command.
  • .say [message] - Bot repeat your message.
  • .sb [subreddit] - Get random picture from Subreddit (Default 'aww' subreddit).
  • .stop - Kick bot from voice channel.
  • .tr - Send random question from Trivial Pursuit.
  • .wiki [subject] - Link page from wikipedia.
  • .yt [link] - Play a video from YouTube.

Troubleshooting

ERR! stack Error: not found: make

$ sudo apt-get install build-essential

Bot don't play sound

$ sudo apt-get install ffmpeg
$ npm install node-opus

Discord JS