Commit Graph

38 Commits

Author SHA1 Message Date
a5d647e6ba fix code smells
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-09 11:52:26 +01:00
04d93dd7a5 fix autocloseable executors
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-09 11:30:59 +01:00
e51646ace4 simplify method 2025-03-09 00:14:07 +01:00
627f6deb97 Add default cases to switches
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 07:20:49 +01:00
980cf5eef3 Prevent instantiating utility classes
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 07:07:42 +01:00
546637c188 Improve various small code quality issues
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 03:53:51 +01:00
b55a27fdfb Optimize regex expressions
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 05:22:22 +01:00
546eb49144 Add empty line to logo
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 04:42:43 +01:00
4df2429b09 Move random methods to random util class, fix footer
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 04:34:39 +01:00
14d2505dac Use Java 15's new text blocks for Unicode logo
All checks were successful
continuous-integration/drone/push Build is passing
Looks way better than String concatenation
2023-01-15 02:13:35 +01:00
4c653fc93c Complete moving to SFL4J
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 02:05:23 +01:00
6bbaf3fe7e Deprecate logger and start moving to SLF4J
All checks were successful
continuous-integration/drone/push Build is passing
JDA already has SLF4J as a requirement, so we might as well use that instead of making our own.
2023-01-15 01:48:56 +01:00
818a25346b Optimize imports
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-14 20:22:37 +01:00
28286f5389 Fix date parser
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-14 20:20:59 +01:00
5acd900857 Rework time parsing utils 2022-12-28 05:41:24 +01:00
35b2c8fb42 Implement basic ban command 2022-12-28 05:41:23 +01:00
52fe279f35 Add bot age info 2022-12-28 05:41:23 +01:00
50196bb8f9 Make trivia support slash commands too 2022-12-28 05:41:23 +01:00
26f1c880ea Handle trivia edge cases without hanging 2022-12-28 05:41:23 +01:00
1c19f3c07f Implement trivia welcome screen with category picker 2022-12-28 05:41:23 +01:00
96f298b654 Make trivia have a functional scoreboard 2022-12-28 05:41:23 +01:00
48fdb32e15 Make trivia functional 2022-12-28 05:41:23 +01:00
c9082e84cc Make trivia loop through all questions 2022-12-28 05:41:23 +01:00
3a8a44adf0 Only fetch multiple-answer trivia for now 2022-12-28 05:41:23 +01:00
b0622f36aa Start implementing trivia command 2022-12-28 05:41:23 +01:00
174b78704f Optimize imports 2022-12-28 05:41:23 +01:00
ba64c02049 Increase randomness by updating the random's seed every minute 2022-12-28 05:41:23 +01:00
28d7ff18ba Throw exception in case of serialization issue 2022-12-28 05:41:22 +01:00
1644a4b07d Make serialization util class 2022-12-28 05:41:22 +01:00
c4d81fb0e4 Add javadoc comment 2022-12-28 05:41:22 +01:00
24a55e14fd Merge two classes 2022-12-28 05:41:22 +01:00
cce57b8108 Optimize imports 2022-12-28 05:41:22 +01:00
fc846fa901 Remove duplicated method 2022-12-28 05:41:22 +01:00
11e4a07698 Refactor objects package
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 16:41:08 +01:00
a7ac446b0b Remove the need to register slash commands separately
All checks were successful
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
a9790b3525 Complete message command parser and listener
All checks were successful
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
244e8ace76 Remove redundant API command fetcher
All checks were successful
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
656dff4b26 Refactor packages
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 00:31:52 +01:00