|
|
@ -8,6 +8,7 @@ from twisted.words.protocols.irc import IRCClient
|
|
|
|
|
|
|
|
|
|
|
|
from json import load, dump, loads
|
|
|
|
from json import load, dump, loads
|
|
|
|
from sys import exit
|
|
|
|
from sys import exit
|
|
|
|
|
|
|
|
from subprocess import run, PIPE
|
|
|
|
|
|
|
|
|
|
|
|
listener = None
|
|
|
|
listener = None
|
|
|
|
connections = {}
|
|
|
|
connections = {}
|
|
|
@ -467,6 +468,14 @@ class Helper(object):
|
|
|
|
log("Keyword configuration rehashed")
|
|
|
|
log("Keyword configuration rehashed")
|
|
|
|
success("Keyword configuration rehashed successfully")
|
|
|
|
success("Keyword configuration rehashed successfully")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif cmd == "dist":
|
|
|
|
|
|
|
|
if config["DistEnabled"]:
|
|
|
|
|
|
|
|
rtrn = run(["./dist.sh"], shell=True, stdout=PIPE)
|
|
|
|
|
|
|
|
info("Exit code: %s -- Stdout: %s" % (rtrn.returncode, rtrn.stdout))
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
failure("The dist command is not enabled")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
elif cmd == "pass":
|
|
|
|
elif cmd == "pass":
|
|
|
|
info("You are already authenticated")
|
|
|
|
info("You are already authenticated")
|
|
|
|
return
|
|
|
|
return
|
|
|
|