Update plugin.py

This commit is contained in:
Gordon Shumway 2019-04-02 19:43:03 -04:00 committed by GitHub
parent c64133f3ab
commit 9b6a28ee39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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'])