Commit graph

7 commits

Author SHA1 Message Date
ce06aa568b Refactor for ActiveRecord and Config Files
Update Custom Commands to leverage ActiveRecord and save commands to a
database. By default, it will use SQLite. Configuration for this (and
potential configuration for PostgreSQL and MySQL) live in
`config/db.yml`. Inculde a Rakefile for handling DB creation and
migrations.

Rakefile: Add Rakefile to handle running the bot, and DB management
Gemfile: Update with new gem dependencies
db/migrate/*: ActiveRecord migrations for Custom Command
custom_commands.rb: Update to leverage ActiveRecord

Leverage the Rakefile to start the bot, removing the binary file. Update
the Dockerfile to also leverage the Rakefile.

Dockerfile: Update to use Rakefile, and install new dependencies
chronicle: Remove unnecessary start file

Refactor the `chronicle_bot` file into `chronicle` and `matrix`

chronicle.rb: General Chronicle setup
matrix.rb: Start a Matrix-specific bot

Update the bot to read configuration from files, instead of either the
environment, or hard-coded values.

config/db.yml: Database configuration
config/bot.yml: General bot configuration

Update the README to reflect the above change with regards to running
the bot either using the Rakefile, or using a Docker container.
2021-02-27 19:55:43 -05:00
b919de11f5 Add Docker capabilities
README.md: Update with Docker instructions
Dockerfile: Add file
2021-02-16 23:15:50 -05:00
69a22c8a22 Add help and listcommand logic
Both `!help` and `!listcommand` are handled by the bot itself, so take
advantage of how the addons method calls work to implement both
`matrix_command` and `help_command` on `self`.

Add `help_command` to each currently enabled and functional addon
2021-02-14 22:39:31 -05:00
0e942a58c1 README: Update available functionality 2021-02-14 21:17:50 -05:00
faa62604ef Add 8ball command 2021-02-07 20:45:54 -05:00
18f56be754 README: Reflect proper feature status 2021-02-07 15:30:41 -05:00
cd00a6a150 Add README and Gemfile 2021-02-06 22:20:33 -05:00