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