Ignore commands

This stops error messages being displayed

Change-Id: I6bf3fc5b7467e78b3461a7493f9b52f3d571cf37
This commit is contained in:
Ian Wienand 2021-06-01 14:31:35 +10:00
parent 15af4d8bea
commit 94dd6f8593
1 changed files with 75 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class MeetBot(callbacks.Plugin):
def __init__(self, irc):
self.__parent = super(MeetBot, self)
self.__parent.__init__(irc)
# Instead of using real supybot commands, I just listen to ALL
# messages coming in and respond to those beginning with our
# prefix char. I found this helpful from a not duplicating logic
@ -153,6 +153,80 @@ class MeetBot(callbacks.Plugin):
print("(above exception in outFilter, ignoring)")
return msg
# NOTE(ianw) 2021-06-01 : These dummy commands simply ignore the
# commands that are handled by doPrivmsg() above and were added
# in response to the Limnoria upgrade which seems to give
# error messages on invalid commands;
def startmeeting(self, irc, msg, args, text):
"""
Start a meeting."""
irc.noReply()
startmeeting = wrap(startmeeting, ['text'])
def action(self, irc, msg, args, text):
"""
Action item in a meeting."""
irc.noReply()
action = wrap(action, ['text'])
def agreed(self, irc, msg, args, text):
"""
Agreed item in a meeting."""
irc.noReply()
agreed = wrap(agreed, ['text'])
def info(self, irc, msg, args, text):
"""
Info item in a meeting."""
irc.noReply()
info = wrap(info, ['text'])
def idea(self, irc, msg, args, text):
"""
Idea item in a meeting."""
irc.noReply()
idea = wrap(idea, ['text'])
def link(self, irc, msg, args, text):
"""
Link item in a meeting."""
irc.noReply()
link = wrap(link, ['text'])
def topic(self, irc, msg, args, text):
"""
Topic item in a meeting."""
irc.noReply()
topic = wrap(topic, ['text'])
def startvote(self, irc, msg, args, text):
"""
Start vote in a meeting."""
irc.noReply()
topic = wrap(startvote, ['text'])
def vote(self, irc, msg, args, text):
"""
Vote on item in a meeting."""
irc.noReply()
topic = wrap(vote, ['text'])
def endvote(self, irc, msg, args, text):
"""
End vote in a meeting."""
irc.noReply()
topic = wrap(endvote, ['text'])
# These are admin commands, for use by the bot owner when there
# are many channels which may need to be independently managed.
def listmeetings(self, irc, msg, args):