49db0062a3Various improvements to bot responses. - Do not display username pill with quoted HTML replies. - Do not attempt to create matrix.to link in plain text replies. - Move plain text formatting responsibility outside of matrix send_message function.projectmoon2021-05-26 22:20:53 +0000
4ae871224aRemove ExecutionError, as it is unnecessary.projectmoon2021-05-26 21:25:32 +0000
1ebd13e912Change execution_allowed to a match for shorter reading.projectmoon2021-05-26 21:12:21 +0000
8f5b6f0636Replace db query with simple in-memory check of if account already exists.projectmoon2021-05-26 21:04:53 +0000
5b3d174edcSeparate registering and linking accounts.projectmoon2021-05-26 15:28:59 +0000
495df13fe6Do not automatically create accounts; use enum to show this instead.projectmoon2021-05-26 13:56:14 +0000
de92fc8488Remove nested <p> tags in error messages.projectmoon2021-05-26 07:06:00 +0000
b05129ad9fLocalize all command parsing code into trait impls.projectmoon2021-05-25 23:54:06 +0000
5d002e5063Add ability to store user active room, with skeleton accounts. - 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.projectmoon2021-05-25 15:05:35 +0000
c1ec7366e4Add user accounts, registration command, secure command valiation.projectmoon2021-05-21 22:33:49 +0000
a84d4fd869Make command parsing case insensitive.projectmoon2021-05-21 22:40:03 +0000
34ee2c6e5dConsider command execution secure when proper conditions are met. - If the room is end-to-end encrypted. - If only the sending user and the bot are present in the room.projectmoon2021-05-21 22:01:52 +0000
9de74d05a9Add an is_secure attribute for commands.projectmoon2021-05-21 15:32:08 +0000
e539dcac1fMove migrations to sqlite directory. Remove in-memory temp db until refinery supports sqlx.projectmoon2021-05-18 14:50:49 +0000
9f97a6cb43Implement variable count; fix listing all variables returning values for all users.projectmoon2021-05-18 14:27:15 +0000
a665293268Fix recording of room users, better logging. - Fix constraint violations when recording users in rooms (migration fix). - Switched to tracing_subscriber to get log events from matrix SDK. - Remove "Applying migration" messages, and rely on refinery to log instead. - Log when an outgoing error is encountered.projectmoon2021-05-17 23:12:27 +0000
66fb6e7cf8Fix various issues with room events and related logic. - Processing events multiple times when re-joining rooms. - Always thinking we've not processed an event/constraint violations (arguments were reversed in record_event). - Not handling errors when fetchin users in a room, and instead just suppressing them. Now, we handle errors! - Also update dependencies (attempt to fix ID too big bug, but no fix).projectmoon2021-05-16 22:22:06 +0000
bfc5609ab6Add proper constraints to db tables. Report errors when listing users.projectmoon2021-05-16 21:39:19 +0000
9798821b7bImplement room and dbstate for sqlite.projectmoon2021-05-16 14:17:03 +0000
cf9ce63892Replace application-level database connectivity. - Some database methods not yet implemented. - Unit tests create temp files that are not cleaned up (but they should be).projectmoon2021-05-15 23:45:26 +0000
6b6e59da2eInitial SQLx implementation (variables). not yet wired up to bot. - Adds migrations for the necessary tables. - Implements the user variables database functions. - Adds sqlx metadata for 'offline' use so we can build without a database.projectmoon2021-05-15 15:27:40 +0000