Discord and Slack bot for Dragon Marked For Death info
- Ruby 2.7.1
- Postgresql (version 12, if using the supplied dragon_bot_db_dump.tar)
If you just want to run the app as is, all you need to do is:
- Install the gems (
$ bundle install) - Add the database
$ sudo -u postgres -i(start terminal session as 'postgres' user)$ psqlpostgres=# CREATE DATABASE dragon_bot_development;postgres=# \q(quit psql)$ exit(quit 'postgres' user session)
- Restore the database backup
- navigate to dragon-bot/db
$ pg_restore -d dragon_bot_development dragon_bot_dump.tar
- Create a
.envfile as shown in.env.example, including your own Discord or Slack API key - Uncomment the appropriate lines in
lib/dragon_bot.rbto enable either Discord or Slack - run
$rakeand invite the bot to your channel!