hairr / chatbot

A chatbot module for Wikia
2 stars 5 forks source link

Error on startup #2

Open TriforceOfKirby opened 9 years ago

TriforceOfKirby commented 9 years ago

I get an error when trying to run the chat bot:

python wikia_bot.py
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/chatbot.py", line 405, in run
    connect = self.c.connection()
  File "/usr/local/lib/python2.7/dist-packages/chatbot.py", line 361, in connection
    var = self.__connection(self.settings, self.xhr)
  File "/usr/local/lib/python2.7/dist-packages/chatbot.py", line 348, in __connection
    str(settings['room']) + "&t=" +
TypeError: coercing to Unicode: need string or buffer, NoneType found

wikia_bot.py:

import chatbot

class MyBot(chatbot.ChatBot):
    def __init__(self):
        chatbot.ChatBot.__init__(self, "Username", "Password", "http://wiki.wikia.com")

if __name__ == '__main__':
    bot = MyBot()
    bot.start()

Username, Password, and http://wiki.wikia.com have actual values.