forked from projectmoon/tenebrous-dicebot
- Adds a user_state table, currently only with active_room. - A user must have an account to take advantage of state. - Now, all users will get an 'account' even if they don't explicitly register. - Bonus: converts user queries to compile-time checked macros. To support these automatically created "accounts," the accounts table now also has an account_status column, indicating if the user is registered or not (or pending activation--future use). The User model has been updated with extra properties from the state, and the user is now carrried in the Context during command execution. A user is ensured to be created before executing the command. |
||
---|---|---|
.. | ||
basic | ||
bin | ||
bot | ||
cofd | ||
commands | ||
cthulhu | ||
db | ||
parser | ||
config.rs | ||
context.rs | ||
error.rs | ||
help.rs | ||
lib.rs | ||
logic.rs | ||
matrix.rs | ||
models.rs | ||
state.rs |