mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-08-03 09:19:26 +00:00
fixed recursion when response format is not configured
This commit is contained in:
@@ -266,5 +266,6 @@ class BaseCommand(ABC):
|
||||
response = self.format_response(message, response_format)
|
||||
return await self.send_response(message, response)
|
||||
else:
|
||||
# Fall back to execute method
|
||||
return await self.execute(message)
|
||||
# No response format configured - don't respond
|
||||
# This prevents recursion and allows disabling commands by commenting them out in config
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user