A discord bot with a web interface
Download this repo and install
$ git clone https://github.com/coolfriends/chillbud.git
$ bundle install
Add the DISCORD_TOKEN environment variable.
$ export DISCORD_TOKEN=yourtoken
Start the bot as a CLI (not the server)
$ chillbud
Check the available Rake tasks
$ bundle exec rake -T
Start the server
$ bundle exec puma config.ru -p 3000
Start the bot
curl -d "discord_token=$DISCORD_TOKEN" -X POST \
http://localhost:3000/api/v1/start
Stop the bot
curl -d "discord_token=$DISCORD_TOKEN" -X POST \
http://localhost:3000/api/v1/stop
Setup RVM and install a new Ruby version (>= 2.3). I'm using ruby-2.6.0-preview2.
Download the repository
$ git clone https://github.com/coolfriends/chillbud.git
Make a new feature branch
$ git checkout -b my-cool-feature
Make your changes and test
$ bundle exec rake
Format your changes before commit (autoformats even if Rubocop fails)
$ bundle exec rake rubocop
Make your changes and commit them
$ git commit -am "Wow I really did it"
Push your changes to your feature branch
$ git push origin my-cool-feature
Then make your pull request in GitHub. See this for more information
The gem is available as open source under the terms of the MIT License.