get rid of the MessageDistributor module... & update discord, to work with API v10
Added discord commands (issue: as they're running over the event hub, they're processed on the same track as other events. => activity ingame triggers the next run; otherwise there's some delay for responses) relay is a standard module now.
This commit is contained in:
@@ -32,6 +32,8 @@ class Logger:
|
||||
def format_chat_message(self, msg):
|
||||
msg = re.sub(r"<a\s+href=\".+?[^\\]\">", "[link]", msg, flags=re.UNICODE | re.DOTALL)
|
||||
msg = re.sub(r"<a\s+href='.+?'>", "[link]", msg, flags=re.UNICODE | re.DOTALL)
|
||||
msg = re.sub(r"<a\s+href=user://\w+?>(\w+?)</a>", "\1", msg, flags=re.UNICODE | re.DOTALL)
|
||||
|
||||
msg = re.sub(r"<font\s+.+?>", "", msg, flags=re.UNICODE)
|
||||
msg = re.sub("</font>", "", msg, flags=re.UNICODE)
|
||||
msg = re.sub("</a>", "[/link]", msg, flags=re.UNICODE)
|
||||
|
||||
Reference in New Issue
Block a user