tenebrous-dicebot/src
projectmoon 6cdc465a2e Add database and storage of user variables.
This commit introduces the Sled embedded key-value store for keeping
track of user variables on a per-room basis. Extensive changes were
made to the command module to separate concerns and also pass the
database "connection" down the line.

 - A new "Context" object was created to hold information and state
   needed for command execution (namely the database).
 - Database is very simple for now, storing only user variables.
   Refactoring later for storing more complicated types.
 - State actor moved into Actors struct, in preparation for either
   more actors, or ripping the whole thing out entirely.
 - Other modules are also more properly separated, notably
   the config module is entirely self-contained.
2020-10-16 13:18:27 +00:00
..
actors Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
bin Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
cofd Dice pool and command parser rewrite to prepare for user variables. 2020-10-11 21:22:12 +00:00
commands Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
dice cargo fix and fmt 2020-04-21 00:09:43 -06:00
actors.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
bot.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
cofd.rs Move CofD dice rolling into dice.rs file under cofd/ 2020-08-27 23:56:19 +00:00
commands.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
config.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
context.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
db.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
dice.rs cargo fix and fmt 2020-04-21 00:09:43 -06:00
error.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
help.rs Implement basic, not-well-formatted help. 2020-08-30 21:54:01 +00:00
lib.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00
parser.rs Remove useless trim function and unnecessary uses of eat_whitespace. 2020-08-31 20:16:43 +00:00
roll.rs Implement Chronicles of Darkness dice system, improve error handling. 2020-08-23 21:24:04 +00:00
variables.rs Add database and storage of user variables. 2020-10-16 13:18:27 +00:00