Skip to content

dferndz/r2d2

Repository files navigation

R2D2

img img img

R2D2 is a general purpose Discord bot. It can manage roles, members, lookup and play youtube music, built-in games and more!

Usage

Add to your server

Add R2D2 to your server.

Commands

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

Game

R2D2 Game
You can now play on Discord with R2D2! Use command .game
The goal is to push all boxes to the diamonds.

Deploy your own

Create a discord application.
Create a heroku account.

Deploy

Dependencies

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

Run locally

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

About

Discord bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages