165 Commits

Author SHA1 Message Date
Lorenzo Dellacà
495f164552 Ignore bots interacting with hideko 2022-12-19 16:54:15 +01:00
Lorenzo Dellacà
fd100649a7 Remove unneeded todo 2022-12-19 16:48:20 +01:00
Lorenzo Dellacà
b3990ff04f Make clear command also delete the sender's message 2022-12-19 16:47:49 +01:00
Lorenzo Dellacà
f5238ced89 Bump version to 0.5.3 2022-12-19 01:41:04 +01:00
Lorenzo Dellacà
f0ee565185 Implement basic functional diceroll command 2022-12-19 01:36:43 +01:00
Lorenzo Dellacà
a21d179308 Fix command label being passed as arg in case of no args 2022-12-19 00:22:51 +01:00
Lorenzo Dellacà
36ad728bbc Fallback to 0 instead of 1 2022-12-19 00:14:30 +01:00
Lorenzo Dellacà
1a6fe6465c Fix console error when int parsing fails in clear message 2022-12-19 00:13:14 +01:00
Lorenzo Dellacà
f0004dc555 Re-register accidentally removed invite command 2022-12-19 00:10:15 +01:00
Lorenzo Dellacà
8ddf0ab80d Bump JDA version to more stable beta 2022-12-19 00:07:02 +01:00
Lorenzo Dellacà
660e18d1f4 Bump version to 0.5.2 2022-12-19 00:05:49 +01:00
Lorenzo Dellacà
db943f7e05 Fix messages with newlines not being handled for commands 2022-12-19 00:05:36 +01:00
Lorenzo Dellacà
cb49bda84a Make say support both slash and message commands 2022-12-19 00:05:13 +01:00
Lorenzo Dellacà
b318b9f22b Bump version to 0.5.1 2022-12-18 23:49:00 +01:00
Lorenzo Dellacà
1447f8c177 Make avatar support both slash and message commands 2022-12-18 23:47:54 +01:00
af16e6d8ac Bump version to 0.5.0
This is a pretty important update since all the basic layout has been completed.
2022-11-23 00:01:38 +01:00
50ccda214f Finish command completion listener implementation
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
ff084cf8e8 Rename datasource package 2022-11-22 23:44:34 +01:00
be3895d268 Update Maven dependencies 2022-11-22 23:44:03 +01:00
a045d0cb2d Bump version to 0.4.6 2022-11-22 23:42:48 +01:00
0016b5de30 Force using config enum class instead of direct entry path 2022-11-22 23:42:21 +01:00
6480795368 Discontinue config.yml file in favor of class mapping
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
ae6647a51e Bump version to 0.4.3
We are getting closer to a stable version.
2022-11-22 23:29:29 +01:00
40aac28e34 Make bot version consistent with Maven
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
70578d2ffc Bump version to 0.4.0
The new thread update deserves a decent version bump
2022-11-22 22:00:59 +01:00
5f73c4069b Make bot commands run in separate threads by default 2022-11-22 21:59:58 +01:00
b681acdbca Make bot announce its prefix 2022-11-22 21:48:13 +01:00
19100758cb Bump version 2022-11-22 21:42:46 +01:00
b2a62d754e Make invite support both slash and message commands 2022-11-22 21:42:35 +01:00
c186c9c576 Improve bot info page 2022-11-22 21:32:20 +01:00
c7208eef84 Make botinfo support both slash and message commands 2022-11-22 21:02:48 +01:00
89fc2aa0a6 Bump version to 0.3.1
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
96ea29b103 Reduce bot name to just Hideko 2022-11-22 20:50:53 +01:00
4015aecc99 Make coinflip support both slash and message commands 2022-11-22 20:50:37 +01:00
ff80e754ff Add comment 2022-11-22 20:42:47 +01:00
3f1835e059 Move clearchat command to base class
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
ecdb0c73e8 Add tiny comment 2022-11-22 17:27:56 +01:00
655840dc82 Implement basic permission check for message commands 2022-11-22 17:08:31 +01:00
11e4a07698 Refactor objects package 2022-11-22 16:41:08 +01:00
a7ac446b0b Remove the need to register slash commands separately
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
ee263a1297 Bump version to 0.3.0
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
a9790b3525 Complete message command parser and listener
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
501b1bc71c Bump version
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
244e8ace76 Remove redundant API command fetcher
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
526880e1f1 Start implementing message-base commands
Slash commands can't be used for everything, so we need something to fall back on.
2022-11-22 14:40:44 +01:00
882c695484 Make slash commands interface and load them dynamically
Slash commands are now loaded dynamically by implementing a SlashCommand interface and storing them in a loaded commands map.
2022-11-22 14:32:22 +01:00
7ae4790d5c Add bot owner info to botinfo command 2022-11-22 00:45:58 +01:00
51de18206e Refactor clearchat class 2022-11-22 00:35:10 +01:00
d3db53a451 Cleanup imports 2022-11-22 00:34:37 +01:00
656dff4b26 Refactor packages 2022-11-22 00:31:52 +01:00