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:
2022-04-15 17:05:30 +02:00
parent fd84d82af2
commit a3a26f2ba4
32 changed files with 1036 additions and 729 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ import re
import time
from threading import Thread
import datetime
import requests
from core.buddy_service import BuddyService
@@ -359,4 +360,8 @@ class OrgController:
if len(current) > 10:
out.append(current)
if len(out) > 0:
self.relay_hub_service.send_message("member_logger", None, out, out)
y = 0
for x in out:
y += 1
blob = ChatBlob(f"Recent changes - {datetime.date.today()} - ({y}/{len(out)})", x, embed=True)
self.relay_hub_service.send_message("member_logger", None, blob, blob)