Stop bot from posting every video when adding a new YouTube feed
This commit is contained in:
		
							parent
							
								
									52aad0a7a1
								
							
						
					
					
						commit
						c6ccbd5b6c
					
				| 
						 | 
					@ -257,6 +257,9 @@ public class BiscuitGuild {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		YTFeed feed = new YTFeed(alias, channel, channelURL, message);
 | 
							YTFeed feed = new YTFeed(alias, channel, channelURL, message);
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							String lastURL =feed.getEntries().getLast().getURL();
 | 
				
			||||||
 | 
							feed.setLastVideo(lastURL);
 | 
				
			||||||
		//Generate a file for the feed
 | 
							//Generate a file for the feed
 | 
				
			||||||
		new YTFeedConfig(this, feed);
 | 
							new YTFeedConfig(this, feed);
 | 
				
			||||||
		//Loads all feeds from files into hash map
 | 
							//Loads all feeds from files into hash map
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue