R2D2 is a general purpose Discord bot. It can manage roles, members,
lookup and play youtube music, built-in games and more!
Add R2D2 to your server.
All commands are prefixed with a dot "."
Basic:
help display this help message
r2d2 share r2d2 to a server
invite invite url for this server
all mention @everyone
Misc:
8ball ask a question, get a prediction
ping get the bot latency
rand mention a random member
Roles:
roles list, add or remove roles
Game:
game play a game
Music:
play look up and play music
pause pause music
stop stop music
disconnect disconnect from voice channel
Members (admin only):
ban ban member
unban unban user
create_role create a role
You can now play on Discord with R2D2! Use command .game
The goal is to push all boxes to the diamonds.
Create a discord application.
Create a heroku account.
This bot uses ffmpeg and opus library. Both must be install for the Music Cog to work.
Using the Deploy to Heroku button will automatically install both requirements to heroku.
If necessary, the buildpacks to install such requirements are:
# ffmpeg
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
# opus
https://github.com/xrisk/heroku-opus.git
Clone the repo.
Install requirements.txt pip install -r requirements.txt
Add env variables:
export BOT_TOKEN=your_discord_bot_token
export CLIENT_ID=your_discord_app_client_id
Run python main.py