From 2eb86d97bdd4be29ebc352c16e6dd9615dac1aab Mon Sep 17 00:00:00 2001 From: Depresst0 Date: Sun, 17 Nov 2024 15:03:23 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sweebot.py b/sweebot.py index e4c1d41..de19f58 100644 --- a/sweebot.py +++ b/sweebot.py @@ -327,11 +327,10 @@ while True: irc.send_irc(channel, nick + ": " + username) elif command[0] == "$welcome": - name = nick if not len(command) > 1 else " ".join(command[1:]) if random(1,2) == 1: - irc.send_irc(channel, "Heyo! Welcome to the channel," + [name]) + irc.send_irc(channel, "Heyo! Welcome to the channel," + command[1]) else: - irc.send_irc(channel, "Welcome, " + [name]) + irc.send_irc(channel, "Welcome, " + command[1]) elif command[0] == "$perms": if len(command) == 2: