Fix for mrelay - some bots are sending malformed messages, caused by wrong usage of their modules.
Accessing an external service through the bot for gathering tower data is nolonger supported; and should be done via external scripts. Fix for callers, and missing alias'es for loot tables. !accounts will only show mains now. the character order of all alt lists has been reversed: [main] high => low instead of [main] low => high !account add <name> also marks accounts as type 0, if an account gets re-enabled. might cause strange behaviour with member-logs, if used in onlinebots. Member type is being displayed in !account now. [Member (X)]
This commit is contained in:
@@ -31,9 +31,9 @@ class AssistController:
|
||||
def assist_command(self, _):
|
||||
blob = ""
|
||||
for caller in self.assist:
|
||||
blob += caller
|
||||
blob += caller.capitalize()
|
||||
blob += f" - [{self.text.make_chatcmd('assist', f'assist {caller}')}]"
|
||||
blob += f"[{self.text.make_tellcmd('REM', f'assist del {caller}')}]<br>"
|
||||
blob += f" [{self.text.make_tellcmd('REM', f'assist del {caller}')}]<br>"
|
||||
blob += self.get_assist_output()
|
||||
self.last_mod = time.time()
|
||||
return ChatBlob(f"Callers ({len(self.assist)})", blob)
|
||||
@@ -57,7 +57,7 @@ class AssistController:
|
||||
return "No assist targets set."
|
||||
self.last_mod = time.time()
|
||||
try:
|
||||
self.assist.remove(char.name)
|
||||
self.assist.remove(char.name.lower())
|
||||
return f"<highlight>{char.name}</highlight> is no longer a caller. " \
|
||||
f"Use: <highlight>{self.get_assist_output()}</highlight>"
|
||||
except ValueError:
|
||||
@@ -73,8 +73,8 @@ class AssistController:
|
||||
if not self.leader_controller.can_use_command(request.sender.char_id):
|
||||
return LeaderController.NOT_LEADER_MSG
|
||||
for caller in targets:
|
||||
if caller not in self.assist:
|
||||
self.assist.append(caller)
|
||||
if caller.lower() not in self.assist:
|
||||
self.assist.append(caller.lower())
|
||||
return self.assist_command(request)
|
||||
|
||||
def get_assist_output(self):
|
||||
|
||||
Reference in New Issue
Block a user