Commit Graph

20 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 30177474e1
Initial async update commit
+ Naive port of all code to async serenity
+ Limited testing has been done, but the bot seems to work
+ Removed WhiteRabbit dependency (does not work in async)
+ Further cleanup needed
2021-01-09 15:45:16 -06:00
Joey Hines d6fb2f9657 Added configurable event reminders
+ Reminders can be set at custom times and have custom messages
2020-08-08 18:09:07 -05:00
Joey Hines fa1dd3fcde Small fixes
+ Creating "ping_roles" more idiomatically
+ Updated readme
2020-07-10 09:29:54 -05:00
Joey Hines c855d6e568 Fixed issue w/ events w/ long descriptions
+ `event_desc` field was too small in the database
2020-07-09 22:36:04 -05:00
Joey Hines 250b05405f Added configuration for setting roles to ping 2020-07-09 22:05:01 -05:00
Joey Hines 19c8ad8c80 Moved countdown link to description field and used a named link 2020-06-12 17:41:46 -05:00
Joey Hines 9179955ff0 Added a countdown link
+ timeanddate.com are being used for now
2020-06-12 17:26:14 -05:00
Joey Hines 9a98190b41 Fixed `cancel` return message 2020-05-25 12:01:58 -05:00
Joey Hines 79d0b1cd09 Added rolling log support
+ Log files are limited to 10mb
+ 10 logs are kept at a time
2020-05-22 22:57:11 -05:00
Joey Hines f3c977b93b Switched over to using a scheduler for events.rs
+ This will hopefully cut down on the CPU/Memory leaks on large servers
2020-05-22 20:03:09 -05:00
Joey Hines a0d6a492b8 Fixed permission check issue
+ `permission_check` was returning false if a member did not have a certain role, instead of continuing to search
2020-05-20 11:29:07 -05:00
Joey Hines 642abf7ccb Fixed missing `"` in `create` 2020-05-02 13:49:20 -05: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 0f8fe04657 Reformatted code to organize it better
+ Moved commands and discord helper functions to `discord` module
2020-04-28 19:41:10 -05:00