mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-10-22 14:01:14 +00:00
fix: BUG-025/026/027/028/029 implementations and ruff/mypy refinements
BUG-025: send_channel_message retry logic on no_event_received BUG-026: split_text_into_chunks and chunked dispatch in message_handler BUG-027: test_weekly_on_wrong_day_does_not_run patch uses fake_now BUG-028: byte_data = b"" initialised before try in decode_meshcore_packet BUG-029: app.py db_path via self._config_base; realtime.html socket race fixed; base.html forceNew removed; ping_timeout 5 to 20s Additional: ruff and mypy refinements across all modules; discord bridge, telegram bridge, rate limiter, and service plugin updates
This commit is contained in:
1 parent
ba83acb064
commit
c9cfcdfe00
66 files changed
+1086
-241
No files matched your search
@@ -33,7 +33,7 @@ class CmdCommand(BaseCommand):
|
||||
super().__init__(bot)
|
||||
self.cmd_enabled = self.get_config_value('Cmd_Command', 'enabled', fallback=True, value_type='bool')
|
||||
|
||||
def can_execute(self, message: MeshMessage) -> bool:
|
||||
def can_execute(self, message: MeshMessage, skip_channel_check: bool = False) -> bool:
|
||||
"""Check if this command can be executed with the given message.
|
||||
|
||||
Args:
|
||||
@@ -135,7 +135,7 @@ class CmdCommand(BaseCommand):
|
||||
return ', '.join(command_names)
|
||||
|
||||
# Build list within length limit
|
||||
result = []
|
||||
result: list[str] = []
|
||||
prefix = "Available commands: "
|
||||
current_length = len(prefix)
|
||||
|
||||
|
||||
Reference in new issue
Block a user