This commit is contained in:
choelzl 2022-02-23 21:43:59 +01:00
parent 27ffd07bcc
commit c33df3a21b
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -1,11 +1,12 @@
(function() { (function() {
function alert(username, desc, tpe) { 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(); var proc = pb.start();
proc.waitFor(); proc.waitFor();
$.panelsocketserver.alertImage(tpe+".gif?noise=" + Math.floor(Math.random() * 1000 + 1)); $.panelsocketserver.alertImage(tpe+".gif?noise=" + Math.floor(Math.random() * 1000 + 1));
} }
$.bind('twitchFollow', function(event) { $.bind('twitchFollow', function(event) {
var follower = event.getFollower(); var follower = event.getFollower();
alert(follower.toUpperCase(), "NEW FOLLOWER", "follow"); alert(follower.toUpperCase(), "NEW FOLLOWER", "follow");