File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,18 @@ def updated_default_commands(default_commands, bot_details):
233
233
return OrderedDict ((name , option ) for name , option in default_commands .items ()
234
234
if name not in exclude_list )
235
235
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
+
236
248
def run_message_handler_for_bot (lib_module , quiet , config_file , bot_name ):
237
249
# type: (Any, bool, str) -> Any
238
250
#
You can’t perform that action at this time.
0 commit comments