Update plugin.py
This commit is contained in:
parent
c64133f3ab
commit
9b6a28ee39
|
@ -80,6 +80,8 @@ class BotLibre(callbacks.Plugin):
|
|||
def botlibre(self, irc, msg, args, text):
|
||||
"""Manual Call to the Cleverbot.io API"""
|
||||
channel = msg.args[0]
|
||||
if not irc.isChannel(channel):
|
||||
channel = msg.nick
|
||||
self._queryBot(irc, channel, text)
|
||||
botlibre = wrap(botlibre, ['text'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue