Merge pull request #296 from MichailiK/rp/fix/nowplayinghandler/refreshes-even-with-npimages-enabled

Fix nowplaying being updated even when NPImages is true.
This commit is contained in:
John Grosh
2019-10-16 18:34:29 -04:00
committed by GitHub

View File

@@ -47,6 +47,7 @@ public class NowplayingHandler
public void init()
{
if(!bot.getConfig().useNPImages())
bot.getThreadpool().scheduleWithFixedDelay(() -> updateAll(), 0, 5, TimeUnit.SECONDS);
}