Commit Graph

14 Commits (master)

Author SHA1 Message Date
Joey Hines 32f100c4cf
Moved to sled for the database + code cleanup
+ Moved to the sled embedded rust database
+ Refactored code during migration
+ fmt+clippy
2021-03-04 19:07:31 -06:00
Joey Hines 7c441028a7
Added event cleanup 2021-02-26 18:00:16 -06:00
Joey Hines 8fb01ba1a4
Added reminder system
+ Reminders are stored in the Reminders struct
+ Every 5 seconds, a async task is run to check if any reminders need to be sent
+ Events are not pulled from the database until a reminder needs to be sent
2021-01-28 16:31:07 -06:00
Joey Hines 04014c24d6
Code cleanup
+ Reduced copies needed to access config or the draft event from global data
+ fmt + clippy
2021-01-16 13:58:46 -06:00
Joey Hines af9952878e
clippy + fmt 2021-01-15 21:51:26 -06:00
Joey Hines 81660a72df Added event organizer and event location
+ Event location is a new required field
+ Event organizer defaults to user that ran the command, or can be specified
+ Formatted code
2020-05-02 13:35:47 -05:00
Joey Hines 9d8688ad92 Fixed reminders
+ Event reminders are now sent properly.
+ Users who react to old events will be told the even has already started
2020-05-01 16:29:09 -05:00
Joey Hines 4a182090ff Added better error handling and help messages 2020-04-27 17:13:23 -05:00
Joey Hines 34647ce678 Added automatic remove of events
+ Events that are older than an hour are deleted
2020-04-26 16:43:54 -05:00
Joey Hines 0e6a0bcbef Added message for when a user removes a reaction 2020-04-26 16:23:13 -05:00
Joey Hines 71a63d84c8 Cleanup and Formatting fixes
+ HypeBotConfig now parses TZ strings on load
+ Cleaned up unsafe code
+ Added more comments
+ Ran code through rustfmt
2020-04-26 15:06:55 -05:00
Joey Hines 8b8b479bcf Added reminders
+ Users can react to an event message, when they do they get reminders about the event
2020-04-25 20:04:13 -05:00
Joey Hines 3eda40dcc0 Added better timezone support and added confirm_event
+ Times are now read in and displayed as a configured timezone
+ Added `confirm_event` to preview the event message before posting
2020-04-23 19:45:02 -05:00
Joey Hines 3c710adf96 Initial commit
What works:
+ create_event command posts an event message to a channel
+ the event is also stored in a database

Todo:
+ Add event reminders to those who RSVP
+ Add permissions support
+ Add commands for editing/deleting events
2020-04-22 22:28:51 -05:00