From c6ccbd5b6cf0952f8177d9a9789dc4235adf4f5b Mon Sep 17 00:00:00 2001 From: thmsdy Date: Fri, 22 Aug 2025 17:21:35 -0500 Subject: [PATCH] Stop bot from posting every video when adding a new YouTube feed --- src/main/java/com/fpghoti/biscuit/guild/BiscuitGuild.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/fpghoti/biscuit/guild/BiscuitGuild.java b/src/main/java/com/fpghoti/biscuit/guild/BiscuitGuild.java index 4bc8162..401788f 100644 --- a/src/main/java/com/fpghoti/biscuit/guild/BiscuitGuild.java +++ b/src/main/java/com/fpghoti/biscuit/guild/BiscuitGuild.java @@ -257,6 +257,9 @@ public class BiscuitGuild { return false; } YTFeed feed = new YTFeed(alias, channel, channelURL, message); + + String lastURL =feed.getEntries().getLast().getURL(); + feed.setLastVideo(lastURL); //Generate a file for the feed new YTFeedConfig(this, feed); //Loads all feeds from files into hash map