Commit Graph

260 Commits

Author SHA1 Message Date
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 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 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 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 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 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
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 4476dd2f7b Fix small emoji translation issue 2022-12-28 05:41:22 +01:00
Bea 2d7cadea02 Optimize imports 2022-12-28 05:41:22 +01:00
Bea b4c80fe56a Make urban command support slash too 2022-12-28 05:41:22 +01:00
Bea 60ee5f2ae2 Allow sender to delete their own urban command results 2022-12-28 05:41:22 +01:00
Bea 8ca70dac78 Fix urban dictionary term not getting parsed correctly for url 2022-12-28 05:41:22 +01:00
Bea 4ef42ffa9e Make urban command support multiple entries 2022-12-28 05:41:22 +01:00
Bea 0f54211ecd Improve urban dictionary parsing 2022-12-28 05:41:22 +01:00
Bea d5664eb646 Improve urban dictionary parsing 2022-12-28 05:41:22 +01:00
Bea 1421d52598 Keep newlines in urban dictionary parser 2022-12-28 05:41:22 +01:00
Bea 28c0f1d750 Implement urban dictionary lookup command 2022-12-28 05:41:22 +01:00
Bea 3259a49ace Change a magic ball response 2022-12-28 05:41:22 +01:00
Bea 4d888d68b9 Make it send a message instead of responding to 8ball 2022-12-28 05:41:22 +01:00
Bea 7959044335 Bump version to 0.5.6 2022-12-28 05:41:22 +01:00
Bea fb3c08fc41 Add basic love calculator message command 2022-12-28 05:41:22 +01:00
Bea c9ff329cbb Make magicball support slash commands too 2022-12-28 05:41:22 +01:00
Bea 8f4f341aab Improve magic ball answers 2022-12-28 05:41:22 +01:00
Bea a030821197 Implement magic ball message command 2022-12-28 05:41:22 +01:00
Bea b033763704 Improve diceroll looks, implement limits to avoid abuse 2022-12-28 05:41:21 +01:00
Bea 982902fc6d Ignore bots interacting with hideko 2022-12-28 05:41:16 +01:00
Bea 00441f089f Remove unneeded todo 2022-12-28 05:41:11 +01:00
Bea 1f6f23e917 Make clear command also delete the sender's message 2022-12-28 05:41:06 +01:00
Bea 1a8409994c Implement basic functional diceroll command 2022-12-28 05:40:56 +01:00
Bea b0a1381589 Fix command label being passed as arg in case of no args 2022-12-28 05:40:51 +01:00
Bea 9504921f27 Fallback to 0 instead of 1 2022-12-28 05:40:45 +01:00
Bea c9528848bc Fix console error when int parsing fails in clear message 2022-12-28 05:40:39 +01:00
Bea 2d1f6699ba Re-register accidentally removed invite command 2022-12-28 05:40:34 +01:00
Bea 32ea099690 Fix messages with newlines not being handled for commands 2022-12-28 05:40:17 +01:00
Bea 1410e4e8af Make say support both slash and message commands 2022-12-28 05:40:11 +01:00
Bea c486630adb Make avatar support both slash and message commands 2022-12-28 05:37:26 +01:00
Bea 50ccda214f Finish command completion listener implementation
continuous-integration/drone/push Build is passing Details
Very similarly to how the slash command interface works, now a slash command auto-completion interface also exists, with its respective listener.
2022-11-23 00:01:05 +01:00
Bea ff084cf8e8 Rename datasource package
continuous-integration/drone/push Build is passing Details
2022-11-22 23:44:34 +01:00
Bea 0016b5de30 Force using config enum class instead of direct entry path
continuous-integration/drone/push Build is passing Details
2022-11-22 23:42:21 +01:00
Bea 6480795368 Discontinue config.yml file in favor of class mapping
continuous-integration/drone/push Build is passing Details
The configuration entries are now mapped in an enum that transfers very well to SnakeYaml's YAML parsing. This is better because we no longer run the risk of entries getting mistyped in classes, or renamed without replacing them everywhere...
2022-11-22 23:40:44 +01:00
Bea 40aac28e34 Make bot version consistent with Maven
continuous-integration/drone/push Build is passing Details
A new internal properties file has been added. Maven will scan this file and replace any value it finds.
2022-11-22 23:28:59 +01:00
Bea 70578d2ffc Bump version to 0.4.0
continuous-integration/drone/push Build is passing Details
The new thread update deserves a decent version bump
2022-11-22 22:00:59 +01:00
Bea 5f73c4069b Make bot commands run in separate threads by default
continuous-integration/drone/push Build is passing Details
2022-11-22 21:59:58 +01:00
Bea b681acdbca Make bot announce its prefix
continuous-integration/drone/push Build is passing Details
2022-11-22 21:48:13 +01:00
Bea 19100758cb Bump version
continuous-integration/drone/push Build is passing Details
2022-11-22 21:42:46 +01:00
Bea b2a62d754e Make invite support both slash and message commands
continuous-integration/drone/push Build is passing Details
2022-11-22 21:42:35 +01:00
Bea c186c9c576 Improve bot info page
continuous-integration/drone/push Build is passing Details
2022-11-22 21:32:20 +01:00
Bea c7208eef84 Make botinfo support both slash and message commands
continuous-integration/drone/push Build is passing Details
2022-11-22 21:02:48 +01:00
Bea 89fc2aa0a6 Bump version to 0.3.1
continuous-integration/drone/push Build is passing Details
The bot is now in a semi-stable state, although still very lacking in terms of features.
2022-11-22 20:51:23 +01:00
Bea 96ea29b103 Reduce bot name to just Hideko
continuous-integration/drone/push Build is passing Details
2022-11-22 20:50:53 +01:00
Bea 4015aecc99 Make coinflip support both slash and message commands
continuous-integration/drone/push Build is passing Details
2022-11-22 20:50:37 +01:00
Bea ff80e754ff Add comment 2022-11-22 20:42:47 +01:00
Bea 3f1835e059 Move clearchat command to base class
continuous-integration/drone/push Build is passing Details
The "clear" command now supports both slash commands and message commands, having identical behavior in both situations.
2022-11-22 20:39:55 +01:00
Bea ecdb0c73e8 Add tiny comment
continuous-integration/drone/push Build is passing Details
2022-11-22 17:27:56 +01:00
Bea 655840dc82 Implement basic permission check for message commands
continuous-integration/drone/push Build is passing Details
2022-11-22 17:08:31 +01:00
Bea 11e4a07698 Refactor objects package
continuous-integration/drone/push Build is passing Details
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 Details
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 ee263a1297 Bump version to 0.3.0
continuous-integration/drone/push Build is passing Details
We finally reached a good status for the bot's internal structure, and can actually focus on features now. We also dropped the -slash tag because it's not restricted to slash commands anymore.
2022-11-22 16:20:28 +01:00
Bea a9790b3525 Complete message command parser and listener
continuous-integration/drone/push Build is passing Details
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 501b1bc71c Bump version
continuous-integration/drone/push Build is passing Details
Up to 0.2.8 because we are close to 0.3.0 since we made slash commands interfaces and a better command listener. However, we're still missing interface for command auto-completion and we should probably also register commands on discord's api from our interface instead of storing them again in a separate class.
2022-11-22 14:55:47 +01:00
Bea 244e8ace76 Remove redundant API command fetcher
continuous-integration/drone/push Build is passing Details
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 526880e1f1 Start implementing message-base commands
continuous-integration/drone/push Build is passing Details
Slash commands can't be used for everything, so we need something to fall back on.
2022-11-22 14:40:44 +01:00