From 29bdc615943668378c9b7170b9a8e3d1166461a3 Mon Sep 17 00:00:00 2001 From: LeRoiDesKiwis Date: Sun, 23 Jun 2024 19:39:04 +0200 Subject: [PATCH] feat(definition): add "see more" Close #14 --- .../omegabot/command/fun/UrbanDictionaryCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/fr/leroideskiwis/omegabot/command/fun/UrbanDictionaryCommand.java b/src/main/java/fr/leroideskiwis/omegabot/command/fun/UrbanDictionaryCommand.java index 95387aa..0ffca33 100644 --- a/src/main/java/fr/leroideskiwis/omegabot/command/fun/UrbanDictionaryCommand.java +++ b/src/main/java/fr/leroideskiwis/omegabot/command/fun/UrbanDictionaryCommand.java @@ -60,6 +60,8 @@ public void execute(OmegaUser user, SlashCommandInteraction event) { definitionsText.append("- ").append(definition).append("\n"); } + definitionsText.append("\nSee more [here](https://www.urbandictionary.com/define.php?term=").append(searchTerm).append(")"); + event.replyEmbeds(new EmbedBuilder() .setTitle("définitions pour `" + searchTerm.replace("+", " ") + "`") .setColor(Color.BLUE)