This commit is contained in:
Russell 2015-04-06 14:40:08 +00:00
parent 670eb6fac8
commit f0f375a9b1
6 changed files with 40 additions and 17 deletions

View File

@ -6,3 +6,7 @@ Traceback (most recent call last):
File "./topicbot.py", line 104, in topic_history
iCount = int(count.split()[1])
IndexError: list index out of range
Traceback (most recent call last):
File "./topicbot.py", line 88, in <module>
def random_topic(channel, user, time, setTopic=false):
NameError: name 'false' is not defined

View File

@ -1,22 +1,25 @@
krowbar&^%120&^%1423775651
karlen&^%175&^%1423763248
endorphant&^%193&^%1423771636
jumblesale&^%20&^%1422027769
marcus&^%51&^%1423688385
krowbar&^%207&^%1427290628
karlen&^%271&^%1426779321
endorphant&^%473&^%1428280534
jumblesale&^%24&^%1426171214
marcus&^%234&^%1428325792
papa&^%48&^%1423148291
epicmorphism&^%5&^%1421937744
audy&^%62&^%1423763125
audy&^%66&^%1424228886
kc&^%18&^%1422326056
vilmibm&^%9&^%1423247508
cmr&^%18&^%1422919247
imt&^%492&^%1423769662
cndorphant&^%640&^%1423773262
imt&^%519&^%1424087616
cndorphant&^%788&^%1424094192
rain&^%17&^%1422310975
sl2c&^%83&^%1423583083
sl2c&^%91&^%1424847521
selfsame&^%1&^%1422230012
bear&^%114&^%1423775107
bear&^%182&^%1425850622
coaxial&^%8&^%1422325983
joe&^%8&^%1422325983
hardmath123&^%4&^%1422325983
leni&^%3&^%1422325983
cel&^%7&^%1423724883
cel&^%10&^%1424492545
quote_bots&^%3&^%1424737471
bave&^%1&^%1427591141
scellef&^%5&^%1428094504

View File

@ -85,13 +85,13 @@ def set_topic(channel, user, time, msg):
ircsock.send("TOPIC "+ channel +" :" + msg + "\n")
count_topic(channel, user, time, msg)
def random_topic(channel, user, time, setTopic=false):
def random_topic(channel, user, time, setTopic=False):
with open("randomtopics.txt") as rtopics:
msg = random.choice(rtopics.readlines()).strip("\n")
if(setTopic):
set_topic(channel, user, time, msg)
else:
ircsock.send("TOPIC "+ channel +" :Suggested Topic: " + msg + "\n")
ircsock.send("PRIVMSG "+channel +" :Suggested Topic: " + msg + "\n")
def rollcall(channel):
ircsock.send("PRIVMSG "+ channel +" :topicbot reporting! I respond to !topic !settopic !randomtopic !thistory\n")

View File

@ -2,3 +2,12 @@
1423077842&^%krowbar&^%tildebot now has a jackpot that increases for each non-payout. every request has a chance to hit jackpot!
1423607774&^%krowbar&^%WARNING! Anti-botting measures enacted... soon. Un-clever work-arounds will not be tolerated
1423771803&^%krowbar&^%Anti-botting measure have been enacted. Un-clever work-arounds will not be tolerated.
1424362211&^%krowbar&^%Anti-botting measures have been worked around. Those responsible have been sacked.
1424648855&^%endorphant&^%Anti-botting measures have been worked around. Those responsible have been sacked. | Try out txtminebot!
1424700303&^%karlen&^%quote_bots is down for feature, tildes will not be logged in the interim
1424701008&^%karlen&^%SO MUCH MINING IN THIS CHANNEL NOW!!
1424993782&^%endorphant&^%/!grovel
1425709612&^%endorphant&^%txtmines: !strike rates now calculated from strength stat
1426016256&^%endorphant&^%http://tilde.town/~wiki/ircbots.html
1426298989&^%endorphant&^%http://tilde.town/~wiki/ircbots.html | txtminebot had a data wipe for a feature push | !golem
1426455418&^%endorphant&^%http://tilde.town/~wiki/ircbots.html | !golem

View File

@ -58,3 +58,9 @@
1422933066&^%vilmibm&^%html + feels
1423001317&^%vilmibm&^%red as blood https://twitter.com/shelbyfero/status/561976412748255234
1423176402&^%vilmibm&^%welcome to tilde.town irc | check out subchannels #bots #music #poetry #coding
1425406697&^%vilmibm&^%tilde.town party on wednesday! | check out subchannels #bots #music #poetry #coding
1425493953&^%vilmibm&^%PARTY TIME: 1) lurk 2) chat 3) make something beautiful 4) talk about it
1426097696&^%vilmibm&^%html + feels
1426781957&^%krowbar&^%html + cheeses
1427275885&^%jumblesale&^%pugtalk
1428024389&^%vilmibm&^%let's talk about html, feels, and pugs

View File

@ -1,12 +1,13 @@
krowbar&^%21&^%27
krowbar&^%22&^%29
um&^%11&^%8
kc&^%0&^%22
marcus&^%4&^%1
khoi&^%1&^%0
karlen&^%0&^%7
jumblesale&^%3&^%2
karlen&^%0&^%9
jumblesale&^%4&^%3
dan&^%1&^%0
datagrok&^%0&^%1
papa&^%1&^%0
vilmibm&^%1&^%8
vilmibm&^%1&^%12
selfsame&^%1&^%0
endorphant&^%0&^%6