diff --git a/Code/irc/log b/Code/irc/log index e69de29..807282c 100644 --- a/Code/irc/log +++ b/Code/irc/log @@ -0,0 +1,8 @@ +Traceback (most recent call last): + File "./topicbot.py", line 188, in + listen() + File "./topicbot.py", line 176, in listen + topic_history(channel, user, messageText) + File "./topicbot.py", line 104, in topic_history + iCount = int(count.split()[1]) +IndexError: list index out of range diff --git a/Code/irc/tildescores.txt b/Code/irc/tildescores.txt index d54b3c3..2ae6d84 100644 --- a/Code/irc/tildescores.txt +++ b/Code/irc/tildescores.txt @@ -1,21 +1,21 @@ -krowbar&^%46&^%1422906524 -karlen&^%38&^%1422291058 -endorphant&^%101&^%1422905595 +krowbar&^%52&^%1422996899 +karlen&^%53&^%1422996579 +endorphant&^%115&^%1422996920 jumblesale&^%20&^%1422027769 -marcus&^%16&^%1422906871 -papa&^%45&^%1422542104 +marcus&^%19&^%1422997619 +papa&^%46&^%1422965349 epicmorphism&^%5&^%1421937744 -audy&^%42&^%1422899452 +audy&^%44&^%1422996599 kc&^%18&^%1422326056 -vilmibm&^%3&^%1421887627 -cmr&^%17&^%1422906518 -imt&^%121&^%1422905648 -cndorphant&^%165&^%1422903662 +vilmibm&^%4&^%1422991123 +cmr&^%18&^%1422919247 +imt&^%183&^%1422995649 +cndorphant&^%193&^%1422995649 rain&^%17&^%1422310975 -sl2c&^%42&^%1422524176 +sl2c&^%51&^%1422993399 leni&^%2&^%1421978450 selfsame&^%1&^%1422230012 -bear&^%68&^%1422903670 +bear&^%85&^%1422940626 coaxial&^%8&^%1422325983 joe&^%8&^%1422325983 hardmath123&^%4&^%1422325983 diff --git a/Code/irc/topicbot.py b/Code/irc/topicbot.py index b53e1b8..ec4d1a2 100755 --- a/Code/irc/topicbot.py +++ b/Code/irc/topicbot.py @@ -102,7 +102,7 @@ def topic_scores(channel): def topic_history(channel, user, count): try: iCount = int(count.split()[1]) - except ValueError: + except (ValueError, IndexError) as e: iCount = 3 if(iCount > 10): iCount = 10 diff --git a/Code/irc/topics_#tildetown.txt b/Code/irc/topics_#tildetown.txt index 4d74879..38d0a75 100644 --- a/Code/irc/topics_#tildetown.txt +++ b/Code/irc/topics_#tildetown.txt @@ -55,3 +55,4 @@ 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 +1422933066&^%vilmibm&^%html + feels diff --git a/Code/irc/topicscores.txt b/Code/irc/topicscores.txt index 3eff95e..c7e2177 100644 --- a/Code/irc/topicscores.txt +++ b/Code/irc/topicscores.txt @@ -2,4 +2,4 @@ krowbar&^%21&^%24 um&^%11&^%8 kc&^%0&^%22 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 +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&^%0vilmibm&^%0&^%1 \ No newline at end of file