Update sweebot.py
This commit is contained in:
parent
47a1b268d2
commit
c7eccbb393
1 changed files with 16 additions and 0 deletions
16
sweebot.py
16
sweebot.py
|
@ -346,6 +346,22 @@ while True:
|
|||
run-=1
|
||||
update()
|
||||
|
||||
elif command[0] == "$socket":
|
||||
if perms == "full":
|
||||
if len(command) > 1:
|
||||
irc.send_irc(channel, nick + ": Sending to socket...")
|
||||
irc.irc_socket.send(bytes(command[1:] + "\n", "UTF-8"))
|
||||
irc2.irc_socket.send(bytes(command[1:] + "\n", "UTF-8"))
|
||||
irc3.irc_socket.send(bytes(command[1:] + "\n", "UTF-8"))
|
||||
else:
|
||||
irc.send_irc(channel, nick + ": what to send to the server?")
|
||||
else:
|
||||
irc.send_irc(channel, nick + ": Permission denied.")
|
||||
block+=1
|
||||
run-=1
|
||||
update()
|
||||
|
||||
|
||||
elif command[0] == "$shell":
|
||||
if perms == "full":
|
||||
#or "shell" in perms.split(",")
|
||||
|
|
Loading…
Reference in a new issue