Reduced & updated dependencies.
By default, messages larger than 2.000 characters (sent via tells) get sent via slaves, if these exist. Fixes #3
This commit is contained in:
@@ -243,7 +243,11 @@ class CommandService:
|
||||
response = handler["callback"](CommandRequest(conn, channel, sender, reply),
|
||||
*self.process_matches(matches, handler["params"]))
|
||||
if response is not None:
|
||||
reply(response)
|
||||
if len(response) > 2000 and conn.id == "main" and channel == "msg":
|
||||
self.bot.send_mass_message(sender.char_id, response)
|
||||
else:
|
||||
reply(response)
|
||||
|
||||
except Exception as e:
|
||||
self.logger.error(f"error processing command: {message}", e)
|
||||
self.relay_hub_service.send_message("access_denied_logger", sender,
|
||||
|
||||
Reference in New Issue
Block a user