1. Marc-Alexandre Chan
  2. DailyPromptBot

Commits

Marc-Alexandre Chan  committed fee67ee

Fixed help command msg not marked unread

  • Participants
  • Parent commits f653a42
  • Branches dev-minibot

Comments (0)

Files changed (1)

File minibot/events.py

View file
             self.msg.reply("Can't open help file!")
             self.log.info("%s: Can't open help file: %s: %s",
                 classname(self), classname(e), e.args[0])
+        self.msg.mark_as_read() # on error, reply() raises exc; won't reach this
 
     def run(self):
         pass