Commit Graph

11 Commits (32f100c4cf64999a64a3b7f9d4b7de52fe10c9e0)

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 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 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 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 0f8fe04657 Reformatted code to organize it better
+ Moved commands and discord helper functions to `discord` module
2020-04-28 19:41:10 -05:00