Skip to content

Commit

Permalink
removed code formatting hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Taz03 authored Nov 8, 2023
1 parent 0d0cb70 commit 1c5a8e3
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public final class HelpSystemHelper {

static final Color AMBIENT_COLOR = new Color(255, 255, 165);

private static final String CODE_SYNTAX_EXAMPLE_PATH = "codeSyntaxExample.png";

private final Predicate<String> hasTagManageRole;
private final Predicate<String> isHelpForumName;
private final String helpForumPattern;
Expand Down Expand Up @@ -111,13 +109,6 @@ public HelpSystemHelper(Config config, Database database, ChatGptService chatGpt
}

RestAction<Message> sendExplanationMessage(GuildMessageChannel threadChannel) {
boolean useCodeSyntaxExampleImage = true;
InputStream codeSyntaxExampleData =
HelpSystemHelper.class.getResourceAsStream("/" + CODE_SYNTAX_EXAMPLE_PATH);
if (codeSyntaxExampleData == null) {
useCodeSyntaxExampleImage = false;
}

String message =
"While you are waiting for getting help, here are some tips to improve your experience:";

Expand All @@ -129,10 +120,6 @@ RestAction<Message> sendExplanationMessage(GuildMessageChannel threadChannel) {
With enough info, someone knows the answer for sure."""));

MessageCreateAction action = threadChannel.sendMessage(message);
if (useCodeSyntaxExampleImage) {
action = action
.addFiles(FileUpload.fromData(codeSyntaxExampleData, CODE_SYNTAX_EXAMPLE_PATH));
}
return action.setEmbeds(embeds);
}

Expand Down

0 comments on commit 1c5a8e3

Please sign in to comment.