From c7eccbb3931e90e8c255b208a5618f0e866508e1 Mon Sep 17 00:00:00 2001 From: Swee Date: Sun, 29 Sep 2024 11:32:40 -0700 Subject: [PATCH] Update sweebot.py --- sweebot.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sweebot.py b/sweebot.py index 7c9c257..40d7a19 100644 --- a/sweebot.py +++ b/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(",")