From 7d1b45aab2755a38cc2778c0d7a20f93a5513f7d Mon Sep 17 00:00:00 2001 From: Russell Date: Mon, 2 Feb 2015 20:12:31 +0000 Subject: [PATCH] Added topics and had topicbot now cover #bots --- Code/irc/tildescores.txt | 6 ++-- Code/irc/topicbot.py | 9 +++--- Code/irc/topics_#bot_test.txt | 22 +++++++++++++ Code/irc/topics_#bots.txt | 1 + Code/irc/topics_#tildetown.txt | 57 ++++++++++++++++++++++++++++++++++ Code/irc/topicscores.txt | 4 +-- 6 files changed, 90 insertions(+), 9 deletions(-) create mode 100644 Code/irc/topics_#bot_test.txt create mode 100644 Code/irc/topics_#bots.txt create mode 100644 Code/irc/topics_#tildetown.txt diff --git a/Code/irc/tildescores.txt b/Code/irc/tildescores.txt index 206751d..d54b3c3 100644 --- a/Code/irc/tildescores.txt +++ b/Code/irc/tildescores.txt @@ -1,14 +1,14 @@ -krowbar&^%43&^%1422902127 +krowbar&^%46&^%1422906524 karlen&^%38&^%1422291058 endorphant&^%101&^%1422905595 jumblesale&^%20&^%1422027769 -marcus&^%15&^%1421960027 +marcus&^%16&^%1422906871 papa&^%45&^%1422542104 epicmorphism&^%5&^%1421937744 audy&^%42&^%1422899452 kc&^%18&^%1422326056 vilmibm&^%3&^%1421887627 -cmr&^%16&^%1422388018 +cmr&^%17&^%1422906518 imt&^%121&^%1422905648 cndorphant&^%165&^%1422903662 rain&^%17&^%1422310975 diff --git a/Code/irc/topicbot.py b/Code/irc/topicbot.py index bfcfcf7..b53e1b8 100755 --- a/Code/irc/topicbot.py +++ b/Code/irc/topicbot.py @@ -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) diff --git a/Code/irc/topics_#bot_test.txt b/Code/irc/topics_#bot_test.txt new file mode 100644 index 0000000..4ae4167 --- /dev/null +++ b/Code/irc/topics_#bot_test.txt @@ -0,0 +1,22 @@ +1419957101&^%krowbar&^%play it again, sam +1419958041&^%krowbar&^%let's try this again +1419958205&^%krowbar&^%some topic +1419958315&^%krowbar&^%another one +1419958494&^%krowbar&^%test1 +1419964864&^%krowbar&^%test2 +1419965062&^%krowbar&^%foobarbaz +1419965068&^%krowbar&^%foobarbaz2 +1419966079&^%krowbar&^%"again test" +1419966095&^%krowbar&^%again test2 +1419966244&^%krowbar&^%again again +1419966499&^%krowbar&^%one more time +1419967306&^%krowbar&^%hey yah +1419968097&^%krowbar&^%test +1419968183&^%krowbar&^%test2 +1419968322&^%krowbar&^%somebody +1419969669&^%krowbar&^%Ever had any relatives in jail? +1419969677&^%krowbar&^%If you were a pizza deliveryman how would you benefit from scissors? +1419976308&^%krowbar&^%What do you do for a living? +1419979138&^%krowbar&^%est topic +1419979191&^%krowbar&^%This will be the last topic +1419979211&^%krowbar&^%this was set by the bot diff --git a/Code/irc/topics_#bots.txt b/Code/irc/topics_#bots.txt new file mode 100644 index 0000000..c0e8f38 --- /dev/null +++ b/Code/irc/topics_#bots.txt @@ -0,0 +1 @@ +1422907756&^%krowbar&^%tildebot's score file got wiped but mostly restord. Sorry! diff --git a/Code/irc/topics_#tildetown.txt b/Code/irc/topics_#tildetown.txt new file mode 100644 index 0000000..4d74879 --- /dev/null +++ b/Code/irc/topics_#tildetown.txt @@ -0,0 +1,57 @@ +1419958609&^%krowbar&^%All hail the great and powerful topic bot! +1419959167&^%krowbar&^%learning new things is hard +1419966584&^%krowbar&^%now featuring a topic high score +1419966661&^%um&^%What's in a topic? +1419966685&^%um&^%now featuring a topic high score +1419966693&^%um&^%now featuring a topic high score +1419968465&^%krowbar&^%topicbot can use commands, too +1419969739&^%kc&^%What's the color of money? +1419969743&^%kc&^%How lucky are you and why? +1419969746&^%kc&^%Would you rather go a week without bathing, but be able to change your clothes? Or a week without changing your clothes but be able to bathe. +1419978272&^%krowbar&^%Do you believe in love at first sight? +1419978797&^%krowbar&^%Let's try that again +1419979283&^%krowbar&^%Try out topicbot, the hot new irc bot! Support !topic !settopic !randomtopic !thistory and more +1419996412&^%um&^%What dead person would you least want to be haunted by? +1420043671&^%um&^%How do you feel about the number 13? +1420094601&^%kc&^%Your dream vacation? Worst vacation? Best vacation? +1420094608&^%kc&^%Do you really know all the words to your national anthem? +1420153793&^%kc&^%Where were you 3 hours ago? Do you think someone was stalking you? +1420208986&^%um&^%Where were you 3 hours ago? Do you think someone was stalking you? +1420209139&^%um&^%bots and bugs and unix and feels +1420220553&^%krowbar&^%Last time you swam in a pool? +1420225864&^%krowbar&^%What is your favorite music player? +1420236825&^%krowbar&^%If you had to form an indie band right now, what would it be called? +1420315387&^%kc&^%Where did you grow up? +1420329520&^%kc&^%Last time you swam in a pool? +1420345623&^%kc&^% How do you start a conversation? +1420363632&^%karlen&^%You discover that your wonderful one year old child is because of a mix up at the hospital and not yours. Would you want to exchange the child to correct the mistake? +1420376838&^%karlen&^%What was the weirdest prank call that you have made? +1420423778&^%kc&^%If you could change something about your home, without worry about expense or mess, what would you do? +1420639344&^%krowbar&^%Name the most terrifying moment of your life so far. Have you recovered from it? +1420676144&^%kc&^%Who was the last person you ate dinner with? +1420686244&^%karlen&^%Do you get along with your family? Why or why not? +1420686271&^%karlen&^%Grab the book nearest to you, turn to page 18, and find line 4. +1420686397&^%karlen&^% When was the last time you bought something? What was it? +1420759128&^%kc&^%What was your first thought when you woke up this morning +1420759732&^%kc&^%What was your first thought when you woke up this morning? +1420931094&^%kc&^%How many tattoos do you have? +1420931923&^%kc&^%What time is bed time? +1420952074&^%kc&^%Would you be willing to eat a bowl of crickets for 0,000? +1421025118&^%kc&^%Disk is full. If you see vilmibm tell him. +1421070821&^%datagrok&^%disk is no longer full. resume regularly scheduled feels +1421176471&^%vilmibm&^%it's time for empathy +1421340782&^%krowbar&^%Would you rather go a week without bathing, but be able to change your clothes? Or a week without changing your clothes but be able to bathe. +1421340795&^%krowbar&^%If you could meet any one person (from history or currently alive), who would it be? +1421349279&^%vilmibm&^%let's talk about the moon +1421680031&^%karlen&^%When was the last time you got mugged off? We're here for you. +1421767508&^%marcus&^%What is your favourite cheese? +1421857208&^%krowbar&^%What is the funniest story your mother tells about you? +1421857406&^%jumblesale&^%What's better -- toilet paper rolled over top or underneath? +1421868599&^%krowbar&^%Deer sightings. When was the last time you saw a deer? +1421890603&^%kc&^%Are you doing what you believe in, or are you settling for what you are doing? +1421939578&^%krowbar&^%Spanish and Japanese, the same or different? Discuss! +1421944786&^%karlen&^%Which is better to have as a pet: a cat or a dog? +1421959644&^%vilmibm&^%the man gathering salt +1421959689&^%vilmibm&^%life is what it is about; i want no truck with death +1422296037&^%krowbar&^%Do you like store-bought things or handmade things? Why? +1422330863&^%vilmibm&^%hi! please try to keep bot chatter to #bots. Also, check out new channels: #poetry, #music, #coding diff --git a/Code/irc/topicscores.txt b/Code/irc/topicscores.txt index c2d947b..3eff95e 100644 --- a/Code/irc/topicscores.txt +++ b/Code/irc/topicscores.txt @@ -1,5 +1,5 @@ -krowbar&^%21&^%23 +krowbar&^%21&^%24 um&^%11&^%8 kc&^%0&^%22 -marcus&^%3&^%1 +marcus&^%4&^%1 khoi&^%1&^%0karlen&^%0&^%1karlen&^%0&^%1jumblesale&^%1&^%0karlen&^%0&^%1karlen&^%0&^%1karlen&^%0&^%1dan&^%1&^%0datagrok&^%0&^%1vilmibm&^%0&^%1papa&^%1&^%0vilmibm&^%1&^%0vilmibm&^%0&^%1jumblesale&^%1&^%0selfsame&^%1&^%0karlen&^%0&^%1jumblesale&^%0&^%1karlen&^%0&^%1vilmibm&^%0&^%1vilmibm&^%0&^%1vilmibm&^%0&^%1jumblesale&^%1&^%0 \ No newline at end of file