Open
Description
Describe the bug
Setting HIDE_RESTRICTED_COMMANDS = True
in config.py breaks the apropos
command.
To Reproduce
errbot --init
errbot
to start the bot, then run!apropos help
- Command works.- Stop the bot and add
HIDE_RESTRICTED_COMMANDS = True
to config.py errbot
and run!apropos help
again. This time the command fails:
[@CHANGE_ME ➡ @errbot] >>> !apropos help
Computer says nooo. See logs for details:
'TextBackend' object has no attribute 'check_command_access'
errbot/errbot/core_plugins/help.py
Line 55 in c5a5218
Grepping and searching through the repo, this is the only mention of
self._bot.check_command_access
, so it does in fact seem undefinedSame error will happen when using the Slackv3 backend.
Expected behavior
Command works.
Screenshots
Environment (please complete the following information):
- Errbot version: 6.2.0 (same issue happens with Master-branch using Slackv3 backend)
- OS version: Arch
- Python version: 3.13.1
- Using a virtual environment: yes
- Using Docker: Fails regardless of Docker.
Additional context