found the message bug

This commit is contained in:
deathbybandaid 2019-05-10 09:47:47 -04:00
parent 249877631c
commit 1c0ce32496
2 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,7 @@ def bot_command_logs(bot, trigger):
bot.osd("Current valid log(s) include: " + spicemanip.main(bot.memory['SpiceBot_Logs']["logs"].keys(), 'andlist'), trigger.sender, 'action')
return
logtype = inlist_match(bot, logtype, bot.memory['SpiceBot_Logs'].keys())
logtype = inlist_match(bot, logtype, bot.memory['SpiceBot_Logs']["logs"].keys())
if logtype == "Sopel_systemd":
logindex = systemd_logs_fetch(bot)

View File

@ -385,11 +385,9 @@ class SopelWrapperOSD(object):
recipients = self._trigger.sender
self._bot.osd(self, messages, recipients, text_method, max_messages)
def msg(self, destination=None, message='', max_messages=1):
if destination is None:
destination = self._trigger.sender
def msg(self, destination, message, max_messages=1):
self._bot.osd(self, message, destination, 'PRIVMSG', 1)
# self._bot.say(message, destination, max_messages)
# self._bot.msg(destination, message, max_messages)
def say(self, message, destination=None, max_messages=1):
if destination is None: