Commit Graph

23 Commits

Author SHA1 Message Date
bea 35b2c8fb42 Implement basic ban command 2022-12-28 05:41:23 +01:00
bea 52fe279f35 Add bot age info 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 1c19f3c07f Implement trivia welcome screen with category picker 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 c9082e84cc Make trivia loop through all questions 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 b0622f36aa Start implementing trivia command 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 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 c4d81fb0e4 Add javadoc comment 2022-12-28 05:41:22 +01:00
bea 24a55e14fd Merge two classes 2022-12-28 05:41:22 +01:00
bea cce57b8108 Optimize imports 2022-12-28 05:41:22 +01:00
bea fc846fa901 Remove duplicated method 2022-12-28 05:41:22 +01:00
bea 11e4a07698 Refactor objects package
continuous-integration/drone/push Build is passing
2022-11-22 16:41:08 +01:00
bea a7ac446b0b Remove the need to register slash commands separately
continuous-integration/drone/push Build is passing
We modified the slash command interface to allow getting command data, and created a generic implementation of it that automatically retrieves data from the command data. The interface should not be used now. Instead, extending the implementation is preferred as it provides a semi-working command already.
2022-11-22 16:40:02 +01:00
bea a9790b3525 Complete message command parser and listener
continuous-integration/drone/push Build is passing
The message command listener is now completed and the bot now also supports message-based commands with multiple aliases.
2022-11-22 16:19:08 +01:00
bea 244e8ace76 Remove redundant API command fetcher
continuous-integration/drone/push Build is passing
We have our own command listener now, so we don't need to rely on Discord's slow API.
2022-11-22 14:53:46 +01:00
bea 656dff4b26 Refactor packages
continuous-integration/drone/push Build is passing
2022-11-22 00:31:52 +01:00