Skip to content

Commit

Permalink
Create /top-helper-ai slash command
Browse files Browse the repository at this point in the history
  • Loading branch information
surajkumar committed Sep 13, 2024
1 parent 1ff5c68 commit 0d0114a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ private void determineTopHelper(SlashCommandInteractionEvent event,
});

if (!allMessages.isEmpty()) {
Optional<String> topHelper =
chatGptService.askQuestion(CHATGPT_PROMPT.formatted(allMessages.toString()));
Optional<String> topHelper = chatGptService
.askQuestion(CHATGPT_PROMPT.formatted(allMessages.toString()));
topHelper.ifPresent(potentialTopHelpers::add);
} else {
logger.trace("No messages found");
Expand Down

0 comments on commit 0d0114a

Please sign in to comment.