jBot is an audio playing bot for discord servers developed with discord.js API.
- Play voice records from audio director or youtube URL.
- List all available records in audio directory.
- Simple commands and command listing.
In order to start the bot and add it to your server, you need to first complete the following tasks:
- Create a .env file in the root of the project with the value JBOT_TOKEN=<you_bot_token>
- Create directory named
audio
in the root of the project and place all the audio records you wish to play (the files names are important as they are used to play them). - Add the bot to your server using the discord OAuth2 API.
Install and run the bot using npm:
$ cd ../root
$ npm install
$ npm run start
All commands must be prefixed with !:
- join - adds the bot to your voice channel.
- play <record_name / url> - plays an audio file from audio directory or from a url.
- ls - lists all available audio files in audio directory.
- stop - stops currently played audio.
- command - lists all commands.
- joke - tells a random joke (by the officail joke api https://github.com/15Dkatz/official_joke_api)
- exit - leaves voice channel