Stop bot from posting every video when adding a new YouTube feed

This commit is contained in:
Ghoti 2025-08-22 17:21:35 -05:00
parent 52aad0a7a1
commit c6ccbd5b6c
1 changed files with 3 additions and 0 deletions

View File

@ -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