WIP
This commit is contained in:
parent
27ffd07bcc
commit
c33df3a21b
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user