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:
@@ -274,4 +274,4 @@ class AccountController:
|
||||
rows = self.account_service.get_logs(alts[0].char_id, limit=20)
|
||||
for i in rows:
|
||||
response += self.account_service.format_entry(i)
|
||||
return self.text.format_page(f"{alts[0].name}'s Account", response)
|
||||
return ChatBlob(f"{alts[0].name}'s Account", response)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import typing
|
||||
|
||||
from core.buddy_service import BuddyService
|
||||
from core.chat_blob import ChatBlob
|
||||
from core.command_alias_service import CommandAliasService
|
||||
@@ -11,8 +13,9 @@ from core.text import Text
|
||||
from core.translation_service import TranslationService
|
||||
from core.igncore import IgnCore
|
||||
from core.util import Util
|
||||
from modules.core.accounting.services.account_service import AccountService
|
||||
from modules.core.discord.discord_controller import DiscordController
|
||||
if typing.TYPE_CHECKING:
|
||||
from modules.core.accounting.services.account_service import AccountService
|
||||
from modules.core.discord.discord_controller import DiscordController
|
||||
|
||||
|
||||
@instance()
|
||||
|
||||
Reference in New Issue
Block a user