Change default priority to "medium", add priority lower than "low" ("monitor")

This commit is contained in:
jesopo 2018-09-09 17:08:38 +01:00
parent 67c89f0580
commit 2a37e10533
2 changed files with 3 additions and 2 deletions

View file

@ -4,8 +4,9 @@ PRIORITY_URGENT = 0
PRIORITY_HIGH = 1
PRIORITY_MEDIUM = 2
PRIORITY_LOW = 3
PRIORITY_MONITOR = 4
DEFAULT_PRIORITY = PRIORITY_LOW
DEFAULT_PRIORITY = PRIORITY_MEDIUM
DEFAULT_DELIMITER = "."
class Event(object):

View file

@ -4,7 +4,7 @@ class Module(object):
def __init__(self, bot, events, exports):
events.on("received").on("message").on("channel"
).hook(self.channel_message,
priority=EventManager.PRIORITY_MEDIUM)
priority=EventManager.PRIORITY_HIGH)
events.on("received").on("command").on("to").hook(
self.to, min_args=2, help=("Relay a message to a "
"user the next time they talk in a channel"),