diff --git a/twitch/customAlerts.js b/twitch/customAlerts.js index d7ca94e..7f2a8ae 100644 --- a/twitch/customAlerts.js +++ b/twitch/customAlerts.js @@ -1,11 +1,12 @@ (function() { function alert(username, desc, tpe) { - var pb = new java.lang.ProcessBuilder("/usr/bin/python3", "./main.py", tpe, username, desc, "/opt/PhantomBot/config/gif-alerts/"); + var pb = new java.lang.ProcessBuilder("/usr/bin/python3", "./Main.py", tpe, username, desc, "/opt/PhantomBot/config/gif-alerts/"); var proc = pb.start(); proc.waitFor(); $.panelsocketserver.alertImage(tpe+".gif?noise=" + Math.floor(Math.random() * 1000 + 1)); } + $.bind('twitchFollow', function(event) { var follower = event.getFollower(); alert(follower.toUpperCase(), "NEW FOLLOWER", "follow");