From bf97d855c3bd9299ab52294586097c69b1b3e563 Mon Sep 17 00:00:00 2001 From: Normal Human Date: Thu, 21 Jul 2016 17:48:47 -0400 Subject: [PATCH] message record now persists between reboots --- chatcommunicate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatcommunicate.py b/chatcommunicate.py index 58fe1720e4..c7259d1d8d 100644 --- a/chatcommunicate.py +++ b/chatcommunicate.py @@ -103,10 +103,10 @@ def watcher(ev, wrap2): latest_smokedetector_messages = GlobalVars.latest_smokedetector_messages[ev_room] commands = message_parts[1:] if len(latest_smokedetector_messages) == 0: - ev.message.reply("I don't have any messages posted after the latest reboot.") + ev.message.reply("I don't have a record of any messages posted.") return if len(commands) > len(latest_smokedetector_messages): - ev.message.reply("I've only posted {} messages since the latest reboot; that's not enough to execute all commands. No commands were executed.".format(len(latest_smokedetector_messages))) + ev.message.reply("I only have a record of {} of my messages; that's not enough to execute all commands. No commands were executed.".format(len(latest_smokedetector_messages))) return for i in xrange(0, len(commands)): shortcut_messages.append(u":{message} {command_name}".format(message=latest_smokedetector_messages[-(i + 1)], command_name=commands[i]))