Skip to content

Commit 9149ca9

Browse files
committed
[DO NOT MERGE] Old code.
1 parent 3c13a95 commit 9149ca9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zulip_bots/zulip_bots/lib.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,18 @@ def updated_default_commands(default_commands, bot_details):
233233
return OrderedDict((name, option) for name, option in default_commands.items()
234234
if name not in exclude_list)
235235

236+
# # Update default_commands from any changes in bot_details
237+
# if not bot_details['default_commands_enabled']: # Bot class will handle all commands
238+
# default_commands = {}
239+
# else:
240+
# if len(bot_details['commands']) == 0: # No commands specified, so don't use this feature
241+
# del default_commands['commands']
242+
# del default_commands['help']
243+
# else:
244+
# for command in bot_details['commands']: # Bot commands override defaults
245+
# if command in default_commands:
246+
# del default_commands[command]
247+
236248
def run_message_handler_for_bot(lib_module, quiet, config_file, bot_name):
237249
# type: (Any, bool, str) -> Any
238250
#

0 commit comments

Comments
 (0)