mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Added topics and had topicbot now cover #bots
This commit is contained in:
1 parent
886b86d2cc
commit
7d1b45aab2
6 files changed
+90
-9
No files matched your search
@@ -93,10 +93,10 @@ def random_topic(channel, user, time):
|
||||
def rollcall(channel):
|
||||
ircsock.send("PRIVMSG "+ channel +" :topicbot reporting! I respond to !topic !settopic !randomtopic !thistory\n")
|
||||
|
||||
def topic_score():
|
||||
def topic_score(channel):
|
||||
ircsock.send("PRIVMSG "+ channel +" :Not implemented yet")
|
||||
|
||||
def topic_scores():
|
||||
def topic_scores(channel):
|
||||
ircsock.send("PRIVMSG "+ channel +" :Not implemented yet")
|
||||
|
||||
def topic_history(channel, user, count):
|
||||
@@ -122,6 +122,7 @@ def connect(server, channel, botnick):
|
||||
ircsock.send("NICK "+ botnick +"\n")
|
||||
|
||||
joinchan(channel)
|
||||
joinchan("#bots")
|
||||
|
||||
def get_user_from_message(msg):
|
||||
try:
|
||||
@@ -164,9 +165,9 @@ def listen():
|
||||
set_topic(channel, user, time, messageText[10:])
|
||||
|
||||
if ircmsg.find(":!tscores") != -1:
|
||||
topic_scores()
|
||||
topic_scores(channel)
|
||||
elif ircmsg.find(":!tscores") != -1:
|
||||
topic_score()
|
||||
topic_score(channel)
|
||||
|
||||
if ircmsg.find(":!randomtopic") != -1:
|
||||
random_topic(channel, user, time)
|
||||
|
||||
Reference in new issue
Block a user