Skip to content

Commit cb6cc8e

Browse files
committed
have automated response footer
1 parent b53e83d commit cb6cc8e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/us/ajg0702/bots/ajsupport/autorespond/AutoRespondManager.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,14 @@ public void autoRespondEmbeddings(Message message) {
111111
)
112112
.build()
113113
).queue();
114-
115-
message.reply(bot.getJson().get(responseKey).getAsString()).queue();
114+
message.reply(bot.getJson().get(responseKey).getAsString())
115+
.addEmbeds(
116+
new EmbedBuilder()
117+
.setDescription("The message above is an automated response. If it is not helpful, please state that it was not helpful so that a human can help you when they are available. Otherwise they may assume this message solved your issue")
118+
.setFooter("ajSupport • Selection: vectorize • Response confidence: " + Math.round(topResult.getScore()*10000)/100 + "%")
119+
.build()
120+
)
121+
.queue();
116122

117123
} catch (IOException e) {
118124
bot.getLogger().warn("Error while embedding for auto-response:", e);

0 commit comments

Comments
 (0)