Kwargs now being passed to the bot successfully

This commit is contained in:
Cloud_Keeper 2017-01-25 20:16:29 +11:00 committed by Griatch
parent 8fc20a3056
commit 40d4f6d286
2 changed files with 2 additions and 4 deletions

View file

@ -228,7 +228,7 @@ class IRCBot(Bot):
"""
# Dev Test
text += str(kwargs) # if kwargs else ""
text += str(kwargs) # if kwargs else ""
if not self.ndb.ev_channel and self.db.ev_channel:
# cache channel lookup

View file

@ -203,9 +203,7 @@ class IRCBot(irc.IRCClient, Session):
kwargs (any): Other data from protocol.
"""
#(cmdname, ((args,), {kwargs}))
#("text", ("blah",), {})).
self.sessionhandler.data_in(self, bot_data_in=(text), test=test)
self.sessionhandler.data_in(self, bot_data_in=[text, kwargs])
def send_text(self, *args, **kwargs):
"""