Commit Graph

341 Commits

Author SHA1 Message Date
Bea f5a8c2af48 Mitigate potential RCE from SnakeYaml (CVE-2022-1471)
This vulnerability is very unlikely to ever happen, since the only way to modify the YAML file is to edit it yourself, and it would be useless for a bot owner to RCE their own bot. No other person can edit the configuration file remotely (eg. with bot commands), so realistically, this could not happen.
2022-12-28 05:41:23 +01:00
Bea 50196bb8f9 Make trivia support slash commands too 2022-12-28 05:41:23 +01:00
Bea 26f1c880ea Handle trivia edge cases without hanging 2022-12-28 05:41:23 +01:00
Bea 09c53c07a1 Bump version to 0.5.14 2022-12-28 05:41:23 +01:00
Bea 1c19f3c07f Implement trivia welcome screen with category picker 2022-12-28 05:41:23 +01:00
Bea d4c3afbddd Bump version to 0.5.13 2022-12-28 05:41:23 +01:00
Bea 96f298b654 Make trivia have a functional scoreboard 2022-12-28 05:41:23 +01:00
Bea 48fdb32e15 Make trivia functional 2022-12-28 05:41:23 +01:00
Bea eb93362d16 Add emojis to trivia buttons 2022-12-28 05:41:23 +01:00
Bea 9f147cee65 Make trivia announce correct answer 2022-12-28 05:41:23 +01:00
Bea b0d234a454 Raise trivia timeout to 15s 2022-12-28 05:41:23 +01:00
Bea c9082e84cc Make trivia loop through all questions 2022-12-28 05:41:23 +01:00
Bea 0be4389448 Disable trivia in dms 2022-12-28 05:41:23 +01:00
Bea c1059bb937 Raise interaction expiration time to 30s 2022-12-28 05:41:23 +01:00
Bea 78f62b5f8d Make trivia functional for a single question 2022-12-28 05:41:23 +01:00
Bea 3a8a44adf0 Only fetch multiple-answer trivia for now 2022-12-28 05:41:23 +01:00
Bea cfa7aef333 Fix build errors 2022-12-28 05:41:23 +01:00
Bea 0e256e4cb5 Remove unneeded methods from MessageResponse 2022-12-28 05:41:23 +01:00
Bea b0622f36aa Start implementing trivia command 2022-12-28 05:41:23 +01:00
Bea e451f59199 Remove double space on urban footer 2022-12-28 05:41:23 +01:00
Bea f3cc9a2d75 Add emojis to urban dictionary 2022-12-28 05:41:23 +01:00
Bea 8f5c29aa95 Convert message response to immutable record 2022-12-28 05:41:23 +01:00
Bea df1e2426e3 Bump version to 0.5.12 2022-12-28 05:41:23 +01:00
Bea 91261f04e5 Make dice roll support slash commands too 2022-12-28 05:41:23 +01:00
Bea bc0463dd38 Add a MessageResponse class for mixed-type content 2022-12-28 05:41:23 +01:00
Bea 161c91b45d Rename method 2022-12-28 05:41:23 +01:00
Bea d09c59996b Cache love calculator results in RAM 2022-12-28 05:41:23 +01:00
Bea 1c82d2b53b Make love calculator also support slash commands 2022-12-28 05:41:23 +01:00
Bea 174b78704f Optimize imports 2022-12-28 05:41:23 +01:00
Bea ba64c02049 Increase randomness by updating the random's seed every minute 2022-12-28 05:41:23 +01:00
Bea 264a94fe0d Bump version to 0.5.11 2022-12-28 05:41:23 +01:00
Bea 9e1888611a Make random statuses update automatically 2022-12-28 05:41:23 +01:00
Bea b1b62bab9f Fix invite command being categorized as fun 2022-12-28 05:41:23 +01:00
Bea de34caa513 Improve help command title 2022-12-28 05:41:23 +01:00
Bea 215e597a4d Make permissions bold instead of code-wrapped 2022-12-28 05:41:23 +01:00
Bea 217022faca Bump version to 0.5.10 2022-12-28 05:41:23 +01:00
Bea 34c100acde Fix nothing being rolles if no arg was specified 2022-12-28 05:41:22 +01:00
Bea 496304c2c3 Make help command use descriptions and usages 2022-12-28 05:41:22 +01:00
Bea e08fefbda3 Fix spacing 2022-12-28 05:41:22 +01:00
Bea 6c4d362ca4 Improve default responses 2022-12-28 05:41:22 +01:00
Bea 0e1a7d3459 Bump version to 0.5.9 2022-12-28 05:41:22 +01:00
Bea e2c84f62c3 Make command category not null 2022-12-28 05:41:22 +01:00
Bea b20fb73371 Implement alias command 2022-12-28 05:41:22 +01:00
Bea 61745c36d0 Implement alias command 2022-12-28 05:41:22 +01:00
Bea 480b8b5eda Add help command and command categories 2022-12-28 05:41:22 +01:00
Bea f9fe12a248 Remove deprecated and unused private method 2022-12-28 05:41:22 +01:00
Bea 28d7ff18ba Throw exception in case of serialization issue 2022-12-28 05:41:22 +01:00
Bea 1644a4b07d Make serialization util class 2022-12-28 05:41:22 +01:00
Bea 68dceaff13 Use enum instead of boolean for page switching
This is useless but looks better
2022-12-28 05:41:22 +01:00
Bea 7dcdf9dbde Remove duplication 2022-12-28 05:41:22 +01:00