Compare commits

..

107 Commits

Author SHA1 Message Date
f934c7d7f4 Update instructions order when registering listeners
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-28 05:36:58 +01:00
61985ff193 Update a small comment 2022-12-28 05:36:54 +01:00
d07664ea04 Update 'README.MD' 2022-12-28 05:36:50 +01:00
26f071aaf5 Update 'README.MD' 2022-12-28 05:36:38 +01:00
f0c55f7bf8 Bump version to 0.5.16
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 04:11:01 +01:00
791d314da4 Implement ban, kick, timeout slash commands
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 04:10:17 +01:00
81d3aebb7f Make trivia command defer reply
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 03:51:43 +01:00
ffb5ef7181 Rework time parsing utils
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 03:34:26 +01:00
51e11e8445 Implement basic timeout command
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-26 03:34:11 +01:00
00c61968b8 Implement basic ban command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 02:40:25 +01:00
e2fda4c7cd Implement basic kick command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 00:22:32 +01:00
11d4b7fa56 Add bot age info
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-25 02:12:39 +01:00
f7ef27066d Bump version to 0.5.15
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-25 01:49:43 +01:00
beae316bb3 Implement profile banner grabber command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-25 01:48:31 +01:00
b02892d60b Fix minetest's name in random statuses
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-24 15:20:39 +01:00
8b2197b4f6 Fix missing JSON dependency
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-24 14:48:17 +01:00
e65ec54fd7 Mitigate potential RCE from SnakeYaml (CVE-2022-1471)
Some checks failed
continuous-integration/drone/push Build is failing
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-24 14:42:01 +01:00
cd1a50a6d1 Make trivia support slash commands too
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 23:31:12 +01:00
ad8078809b Handle trivia edge cases without hanging
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 20:27:56 +01:00
5488ec567e Bump version to 0.5.14
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:59:40 +01:00
42cb72fd3d Implement trivia welcome screen with category picker
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 17:59:25 +01:00
71904f4243 Bump version to 0.5.13
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 16:40:41 +01:00
69bd1a5652 Make trivia have a functional scoreboard
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 16:40:17 +01:00
d188eae1e2 Make trivia functional
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 14:24:07 +01:00
336f8364c7 Add emojis to trivia buttons
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 04:37:32 +01:00
acb2ee21c2 Make trivia announce correct answer
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 04:26:36 +01:00
c02cc8c7df Raise trivia timeout to 15s
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 04:11:05 +01:00
8d0d181ad9 Make trivia loop through all questions
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 04:09:27 +01:00
7dce206a01 Disable trivia in dms
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 03:50:23 +01:00
702ed65a12 Raise interaction expiration time to 30s
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 03:43:55 +01:00
53fd3dc81d Make trivia functional for a single question
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 03:40:13 +01:00
c3354b9976 Only fetch multiple-answer trivia for now
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 02:54:07 +01:00
ae1101e93f Fix build errors
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 02:52:17 +01:00
3f67777659 Remove unneeded methods from MessageResponse
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-21 02:51:23 +01:00
c63bafc88e Start implementing trivia command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-21 02:50:22 +01:00
6c857e2f9a Remove double space on urban footer
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 23:37:37 +01:00
6c33581dc4 Add emojis to urban dictionary
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 23:30:40 +01:00
931d6efaef Convert message response to immutable record
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 23:07:01 +01:00
e3e8b469ba Bump version to 0.5.12
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 23:03:34 +01:00
54022221a0 Make dice roll support slash commands too
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 23:03:21 +01:00
58c4412f75 Add a MessageResponse class for mixed-type content
Some checks failed
continuous-integration/drone/push Build is failing
2022-12-20 23:03:07 +01:00
0bd63e76bd Rename method
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 22:49:20 +01:00
d49fe3ee15 Cache love calculator results in RAM
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 22:48:29 +01:00
5e48652587 Make love calculator also support slash commands
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 22:32:40 +01:00
6ffe10e4c8 Optimize imports 2022-12-20 22:24:34 +01:00
0f54fe856e Increase randomness by updating the random's seed every minute
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 22:15:52 +01:00
5a7f884703 Bump version to 0.5.11 2022-12-20 22:08:58 +01:00
e5c5993fb2 Make random statuses update automatically
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 22:08:05 +01:00
d331c48ced Fix invite command being categorized as fun
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 18:04:37 +01:00
84ff5a752e Improve help command title
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 18:03:02 +01:00
4f408fb5f9 Make permissions bold instead of code-wrapped
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:58:14 +01:00
1384259187 Bump version to 0.5.10
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:55:43 +01:00
82698ec5fe Fix nothing being rolles if no arg was specified
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:55:30 +01:00
0762068465 Make help command use descriptions and usages
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:51:28 +01:00
cc9aee3441 Fix spacing 2022-12-20 17:23:52 +01:00
86c7c30d8f Improve default responses 2022-12-20 17:23:20 +01:00
19e3cde7e6 Bump version to 0.5.9
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:18:39 +01:00
72f9bb4eb5 Make command category not null
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:18:24 +01:00
407ca279f5 Implement alias command 2022-12-20 17:18:09 +01:00
9eefa4b958 Implement alias command 2022-12-20 17:17:13 +01:00
9278b485d9 Add help command and command categories
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 17:06:18 +01:00
5a2205e567 Remove deprecated and unused private method
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 15:15:03 +01:00
3212ceb03c Throw exception in case of serialization issue
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 15:13:21 +01:00
a80b2cc5a9 Make serialization util class
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 15:11:44 +01:00
d087de1d01 Use enum instead of boolean for page switching
All checks were successful
continuous-integration/drone/push Build is passing
This is useless but looks better
2022-12-20 15:09:35 +01:00
99fc980e00 Remove duplication
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 15:04:39 +01:00
02627ab732 Add javadoc comment
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 14:53:58 +01:00
dead16f338 Merge two classes
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 14:51:29 +01:00
2f51f9d40c Optimize imports
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 14:50:09 +01:00
5f5fc8d3a8 Remove duplicated method
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 14:49:44 +01:00
4c98182da7 Fix small emoji translation issue
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 03:44:00 +01:00
9e57a3a426 Optimize imports
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 03:17:32 +01:00
2bf08c27b7 Make urban command support slash too
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 02:17:27 +01:00
b085efeccb Allow sender to delete their own urban command results
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 00:59:26 +01:00
d8604c7ae5 Fix urban dictionary term not getting parsed correctly for url
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 00:52:31 +01:00
e83d7de7f5 Bump version to 0.5.8
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 00:35:08 +01:00
dfa25e54f3 Make urban command support multiple entries
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-20 00:34:49 +01:00
d1dc71dde9 Improve urban dictionary parsing
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 22:53:25 +01:00
6fcd3b4cdf Improve urban dictionary parsing
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 22:45:02 +01:00
deb7d83e64 Keep newlines in urban dictionary parser
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 21:58:57 +01:00
010a25fd66 Bump version to 0.5.7
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 21:43:07 +01:00
7c2530c88b Implement urban dictionary lookup command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 21:42:55 +01:00
20665f4862 Change a magic ball response
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 21:03:20 +01:00
ecfa3cded8 Make it send a message instead of responding to 8ball
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 21:00:25 +01:00
90e0c4ddf9 Bump version to 0.5.6
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 20:39:16 +01:00
fd9fe4ead6 Add basic love calculator message command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 20:38:32 +01:00
6cdd44da29 Bump version to 0.5.5
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 18:37:38 +01:00
3dd30a3a89 Make magicball support slash commands too
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 18:37:17 +01:00
5c8bad2b02 Improve magic ball answers
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 18:28:21 +01:00
b23bc30fc0 Implement magic ball message command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 18:24:29 +01:00
018e24034f Bump version to 0.5.4
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 17:32:18 +01:00
1a19a9ea06 Improve diceroll looks, implement limits to avoid abuse
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 17:31:28 +01:00
495f164552 Ignore bots interacting with hideko
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 16:54:15 +01:00
fd100649a7 Remove unneeded todo 2022-12-19 16:48:20 +01:00
b3990ff04f Make clear command also delete the sender's message
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 16:47:49 +01:00
f5238ced89 Bump version to 0.5.3
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 01:41:04 +01:00
f0ee565185 Implement basic functional diceroll command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 01:36:43 +01:00
a21d179308 Fix command label being passed as arg in case of no args
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:22:51 +01:00
36ad728bbc Fallback to 0 instead of 1
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:14:30 +01:00
1a6fe6465c Fix console error when int parsing fails in clear message
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:13:14 +01:00
f0004dc555 Re-register accidentally removed invite command
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:10:15 +01:00
8ddf0ab80d Bump JDA version to more stable beta
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:07:02 +01:00
660e18d1f4 Bump version to 0.5.2
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:05:49 +01:00
db943f7e05 Fix messages with newlines not being handled for commands
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-19 00:05:36 +01:00
cb49bda84a Make say support both slash and message commands 2022-12-19 00:05:13 +01:00
b318b9f22b Bump version to 0.5.1
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-18 23:49:00 +01:00
1447f8c177 Make avatar support both slash and message commands
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-18 23:47:54 +01:00

Diff Content Not Available