karmabot
karmabot copied to clipboard
Unable to run development bot
Trying to do a patch and unable to run the development bot to be able to test things. Ran the setup.py file and installed Redis, started the server. Here's what happens when I tried to start up a bot.
karmabot -s "irc.cat.pdx.edu" -p 6667 -n testbot "#karmabot"
Traceback (most recent call last):
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/internet/tcp.py", line 460, in doRead
return self.protocol.dataReceived(data)
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/words/protocols/irc.py", line 2277, in dataReceived
basic.LineReceiver.dataReceived(self, data.replace('\r', ''))
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/protocols/basic.py", line 564, in dataReceived
why = self.lineReceived(line)
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/words/protocols/irc.py", line 2285, in lineReceived
self.handleCommand(command, prefix, params)
--- <exception caught here> ---
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/words/protocols/irc.py", line 2329, in handleCommand
method(prefix, params)
File "/home/millertime/hax/python/karmabot/env/lib/python2.7/site-packages/Twisted-10.2.0-py2.7-linux-i686.egg/twisted/words/protocols/irc.py", line 1876, in irc_RPL_TOPIC
self.topicUpdated(user, channel, newtopic)
File "/home/millertime/hax/python/karmabot/karmabot/core/client.py", line 84, in topicUpdated
subject = storage.db.get(channel)
File "/home/millertime/hax/python/karmabot/karmabot/core/storage.py", line 30, in get
subject = Subject(key, subject)
File "/home/millertime/hax/python/karmabot/karmabot/core/subject.py", line 18, in __init__
facet_registry.attach(self, set(self.data["-facets"]))
File "/home/millertime/hax/python/karmabot/karmabot/core/register.py", line 19, in attach
facet_class(subject)
File "/home/millertime/hax/python/karmabot/karmabot/core/facets/base.py", line 17, in __init__
subject.add_facet(self)
File "/home/millertime/hax/python/karmabot/karmabot/core/subject.py", line 24, in add_facet
facet = facet_registry[facet](self)
exceptions.KeyError: <karmabot.core.facets.description.DescriptionFacet object at 0xa3999ec>