From 229d7ac05a09212eacc40d9fa00af8a6201f4cb3 Mon Sep 17 00:00:00 2001 From: Swee Date: Sun, 22 Sep 2024 14:22:26 -0700 Subject: [PATCH] Update sweebot.py --- sweebot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sweebot.py b/sweebot.py index f792e71..11303bd 100644 --- a/sweebot.py +++ b/sweebot.py @@ -262,9 +262,7 @@ while True: irc.send_irc(channel, "tip, ping, whoami, perms, version, figlet, tdfiglet, cowsay, uptime, cc, joke, botsnack. (restart, join, part, shell, config, pull.) Use '$help (command)' for explanation.") elif command[0] == "$tip": - result = subprocess.run(['fortune'], stdout=subprocess.PIPE) - output = result.stdout.decode('utf-8').split("\n") - multiline(output) + system(["fortune"], channel) elif command[0] == "$whoami": if perms != "":