Commit Graph

252 Commits

Author SHA1 Message Date
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
94037b252f Improve final fields naming
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 02:31:11 +01:00
7f73d4fb23 Fix shutdown method no longer shutting down when invocated directly
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 02:11:16 +01:00
383b09a53e Register shutdown hook without relying on Sun proprietary method
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 02:07:27 +01:00
8b1c1b4d04 Make repository URL a property
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-01-16 00:41:45 +01:00
a28781b806 Update repo URLs
Some checks are pending
continuous-integration/drone/push Build is running
2023-01-16 00:33:52 +01:00
78bdadad06 Add info about random.org
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 23:02:41 +01:00
3bb006e0c6 Update badges
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 05:32:11 +01:00
0cc30ddf29 Implement MessageRespone base functions
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 05:29:57 +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
ee4c5155fa Improve exception handling
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 05:00:44 +01:00
d2abeb35fc Implement various null checks
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 04:51:30 +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
6b97e0bb7e Remove unused variable
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 04:39:59 +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
d7aa5d75eb Implement random.org API integration with random seed updater
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 04:26:06 +01:00
b81a7e65d2 Disable random seed update because SecureRandom is self-seeding with a better algorithm
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 03:34:34 +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
95b4f81235 Switch to SecureRandom class
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 01:07:31 +01:00
d6ef0da167 Make multiple small improvements
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 01:00:44 +01:00
fb752fb9a9 Fix code style error
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 00:40:19 +01:00
374f979ae3 Fix synchronized mismatch
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-14 23:52:12 +01:00
5591b8abab Make method synchronized
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-14 23:30:57 +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
c843d2cd61 Update instructions order when registering listeners
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-12-28 05:41:24 +01:00
3bd09d2867 Update a small comment 2022-12-28 05:41:24 +01:00
e1c22ac059 Implement ban, kick, timeout slash commands 2022-12-28 05:41:24 +01:00
3676e9d5ad Make trivia command defer reply 2022-12-28 05:41:24 +01:00
5acd900857 Rework time parsing utils 2022-12-28 05:41:24 +01:00
d2f00c781e Implement basic timeout command 2022-12-28 05:41:24 +01:00
35b2c8fb42 Implement basic ban command 2022-12-28 05:41:23 +01:00
420666eab1 Implement basic kick command 2022-12-28 05:41:23 +01:00
52fe279f35 Add bot age info 2022-12-28 05:41:23 +01:00
00c46c1396 Implement profile banner grabber command 2022-12-28 05:41:23 +01:00
7f7ada9b9e Fix minetest's name in random statuses 2022-12-28 05:41:23 +01:00
47bd16fd13 Fix missing JSON dependency 2022-12-28 05:41:23 +01:00
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
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
eb93362d16 Add emojis to trivia buttons 2022-12-28 05:41:23 +01:00
9f147cee65 Make trivia announce correct answer 2022-12-28 05:41:23 +01:00
b0d234a454 Raise trivia timeout to 15s 2022-12-28 05:41:23 +01:00
c9082e84cc Make trivia loop through all questions 2022-12-28 05:41:23 +01:00
0be4389448 Disable trivia in dms 2022-12-28 05:41:23 +01:00