Skip to content

Commit 03baab7

Browse files
authored
Added /message commands (#1372)
* Added /message command family - raw - post (and post-with-message) - edit (and edit-with-message) * CR simplified subcommand setup * CR renamed confusing method names
1 parent ffb1650 commit 03baab7

File tree

3 files changed

+405
-0
lines changed

3 files changed

+405
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/Features.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.togetherjava.tjbot.features.mathcommands.TeXCommand;
4040
import org.togetherjava.tjbot.features.mathcommands.wolframalpha.WolframAlphaCommand;
4141
import org.togetherjava.tjbot.features.mediaonly.MediaOnlyChannelListener;
42+
import org.togetherjava.tjbot.features.messages.MessageCommand;
4243
import org.togetherjava.tjbot.features.moderation.BanCommand;
4344
import org.togetherjava.tjbot.features.moderation.KickCommand;
4445
import org.togetherjava.tjbot.features.moderation.ModerationActionsStore;
@@ -203,6 +204,7 @@ public static Collection<Feature> createFeatures(JDA jda, Database database, Con
203204
features.add(new BookmarksCommand(bookmarksSystem));
204205
features.add(new ChatGptCommand(chatGptService, helpSystemHelper));
205206
features.add(new JShellCommand(jshellEval));
207+
features.add(new MessageCommand());
206208

207209
FeatureBlacklist<Class<?>> blacklist = blacklistConfig.normal();
208210
return blacklist.filterStream(features.stream(), Object::getClass).toList();

0 commit comments

Comments
 (0)