Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouped help thread commands #574

Merged
merged 11 commits into from Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -125,9 +125,7 @@ public static Collection<Feature> createFeatures(JDA jda, Database database, Con
features.add(new WhoIsCommand());
features.add(new WolframAlphaCommand(config));
features.add(new AskCommand(config, helpSystemHelper));
features.add(new CloseCommand());
features.add(new ChangeHelpCategoryCommand(config, helpSystemHelper));
features.add(new ChangeHelpTitleCommand(helpSystemHelper));
features.add(new HelpThreadCommand(config, helpSystemHelper));

// Mixtures
features.add(new HelpThreadOverviewUpdater(config, helpSystemHelper));
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -108,7 +108,7 @@ RestAction<Message> sendExplanationMessage(MessageChannel threadChannel) {
**provide details**, context, more code, examples and maybe some screenshots. \
With enough info, someone knows the answer for sure."""),
HelpSystemHelper.embedWith(
"Don't forget to close your thread using the command **/close** when your question has been answered, thanks."));
"Don't forget to close your thread using the command **/help-thread close** when your question has been answered, thanks."));

MessageAction action = threadChannel.sendMessage(message);
if (useCodeSyntaxExampleImage) {
Expand Down Expand Up @@ -293,7 +293,7 @@ private void executeUncategorizedAdviceCheck(long threadChannelId, long authorId
MessageEmbed embed = HelpSystemHelper.embedWith(
"""
Hey there 👋 You have to select a category for your help thread, otherwise nobody can see your question.
Please use the `/change-help-category` slash-command and pick what fits best, thanks 🙂
Please use the `/help-thread change category` slash-command and pick what fits best, thanks 🙂
""");
Message message = new MessageBuilder(author.getAsMention()).setEmbeds(embed).build();

Expand Down