forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
b1afe29acf
commit
2eb86d97bd
1 changed files with 2 additions and 3 deletions
|
@ -327,11 +327,10 @@ while True:
|
||||||
irc.send_irc(channel, nick + ": " + username)
|
irc.send_irc(channel, nick + ": " + username)
|
||||||
|
|
||||||
elif command[0] == "$welcome":
|
elif command[0] == "$welcome":
|
||||||
name = nick if not len(command) > 1 else " ".join(command[1:])
|
|
||||||
if random(1,2) == 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:
|
else:
|
||||||
irc.send_irc(channel, "Welcome, " + [name])
|
irc.send_irc(channel, "Welcome, " + command[1])
|
||||||
|
|
||||||
elif command[0] == "$perms":
|
elif command[0] == "$perms":
|
||||||
if len(command) == 2:
|
if len(command) == 2:
|
||||||
|
|
Loading…
Reference in a new issue