mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Some new features and fixes for banterbot and topicbot. update to chatcloud
This commit is contained in:
1 parent
3da5e4073c
commit
e9fc646207
10 files changed
+187
-32
No files matched your search
@@ -250,7 +250,7 @@ def get_user_from_message(msg):
|
||||
except ValueError:
|
||||
return ""
|
||||
|
||||
def listen():
|
||||
def listen(botnick):
|
||||
while 1:
|
||||
|
||||
ircmsg = ircsock.recv(2048)
|
||||
@@ -320,7 +320,7 @@ def listen():
|
||||
if ircmsg.find(":!rollcall") != -1:
|
||||
rollcall(channel)
|
||||
|
||||
if ircmsg.find(":" + botname + ":") != -1:
|
||||
if ircmsg.find(":" + botnick + ":") != -1:
|
||||
mug_off(channel)
|
||||
|
||||
if ircmsg.find("PING :") != -1:
|
||||
@@ -331,4 +331,4 @@ def listen():
|
||||
|
||||
ircsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
connect(options.server, options.channel, options.nick)
|
||||
listen()
|
||||
listen(options.nick)
|
||||
Reference in new issue
Block a user