You can take this as a skelleton for future discord bots made in Ruby.
Discordrb is currently very powerful, but doesn't provide with basic structure and tools to do efficient deployments to either Heroku or other cloud services.
It doesn't provide tools for easy development of bots either, so the point here is to try to minimize that hassle and just clone this repo and start coding your bot commands.
This repo contains Discordrb and Sinatra. Sinatra is not completely necessary, but if you want to deploy to Heroku (or some other cloud service that requires you to bind to a port), you'll need it. It's also a nice option in case you wanna interact with your bot from outside discord through webhooks.
- Ruby 2.6+
- Same requirements as Discordrb
- Rename/duplicate the
.env.example
to.env
and add all your keys there.
$ rackup
If you want to run this without the web overhead:
NOWEB=true rackup
Or without the bot itself:
NOBOT=true rackup
- Fork it
- Change it
- Push it
- Create the PR
- Ping me :D