forked from swee/MeowNex
I think this'll work.
This commit is contained in:
parent
7ad2937961
commit
f891c2f7a1
1 changed files with 3 additions and 2 deletions
|
@ -327,10 +327,11 @@ 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," + command[1])
|
||||
irc.send_irc(channel, "Heyo! Welcome to the channel," + {name})
|
||||
else:
|
||||
irc.send_irc(channel, "Welcome, " + command[1])
|
||||
irc.send_irc(channel, "Welcome, " + {name})
|
||||
|
||||
elif command[0] == "$perms":
|
||||
if len(command) == 2:
|
||||
|
|
Loading…
Reference in a new issue