diff --git a/src/main/java/net/neoforged/camelot/listener/ThreadPingsListener.java b/src/main/java/net/neoforged/camelot/listener/ThreadPingsListener.java index ace4af2..a6ad28f 100644 --- a/src/main/java/net/neoforged/camelot/listener/ThreadPingsListener.java +++ b/src/main/java/net/neoforged/camelot/listener/ThreadPingsListener.java @@ -17,6 +17,7 @@ import net.dv8tion.jda.api.requests.ErrorResponse; import net.neoforged.camelot.Database; import net.neoforged.camelot.db.transactionals.ThreadPingsDAO; +import net.neoforged.camelot.util.Emojis; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -77,7 +78,7 @@ public void onEvent(@NotNull GenericEvent gevent) { LOGGER.warn("Bot user lacks Mention Everyone permission for thread {}; role adding may not work properly", thread.getId()); } - thread.sendMessage("A new thread! Adding some people into here...") + thread.sendMessage("A new thread! Adding some people into here... " + Emojis.LOADING_SPINNER.getFormatted()) .setSuppressedNotifications(true) .setAllowedMentions(Set.of(MentionType.ROLE)) .delay(Duration.ofSeconds(3)) diff --git a/src/main/java/net/neoforged/camelot/util/Emojis.java b/src/main/java/net/neoforged/camelot/util/Emojis.java index f6bf0c1..ca493de 100644 --- a/src/main/java/net/neoforged/camelot/util/Emojis.java +++ b/src/main/java/net/neoforged/camelot/util/Emojis.java @@ -16,4 +16,6 @@ public class Emojis { public static final Emoji CMDLINE = MANAGER.getLazyEmoji("cmdline"); public static final Emoji ADD = MANAGER.getLazyEmoji("add"); public static final Emoji NO_RESULTS = MANAGER.getLazyEmoji("noresults"); + + public static final Emoji LOADING_SPINNER = MANAGER.getLazyEmoji("loadingarrow"); } diff --git a/src/main/resources/emojis/emojis.properties b/src/main/resources/emojis/emojis.properties index 7e287f1..95e8d1c 100644 --- a/src/main/resources/emojis/emojis.properties +++ b/src/main/resources/emojis/emojis.properties @@ -4,6 +4,9 @@ cmdline=cmdline.png add=add.png noresults=noresults.png +# Animated +loadingarrow=loadingarrow.gif + # Pagination prevpage=prevpage.png nextpage=nextpage.png diff --git a/src/main/resources/emojis/loadingarrow.gif b/src/main/resources/emojis/loadingarrow.gif new file mode 100644 index 0000000..c2bc218 Binary files /dev/null and b/src/main/resources/emojis/loadingarrow.gif differ