Skip to content

coolfriends/chillbud

Repository files navigation

chillbud

A discord bot with a web interface

Installation

Download this repo and install

$ git clone https://github.com/coolfriends/chillbud.git
$ bundle install

Usage

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

Development

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

License

The gem is available as open source under the terms of the MIT License.

About

A Discord bot in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •