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
@@ -108,12 +108,12 @@ class CharacterInfoController:
blob += self.alts_controller.format_alt_list(alts)
more_info = self.text.paginate_single(ChatBlob("More Info", blob))
msg = self.text.format_char_info(char_info, online_status, True) + " " + more_info
msg = ChatBlob("More Info", blob, self.text.format_char_info(char_info, online_status, True)+" ")
# msg = self.text.format_char_info(char_info, online_status, True) + " " + more_info
elif char.char_id:
blob = "<notice>Note: Could not retrieve detailed info for character.</notice>\n\n"
blob += f"Name: <highlight>{char.name}</highlight>\n"
blob += f"Character ID: <highlight>{char.char_id:d}</highlight>\n"
blob += f"Character ID: <highlight>{char.char_id}</highlight>\n"
if online_status is not None:
blob += f"Online status: {'<green>Online</green>' if online_status else '<red>Offline</red>'}\n"
blob += self.get_name_history(char.char_id)