mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
realcom retrieval better
This commit is contained in:
parent
9a63f175e1
commit
7e1f71175c
@ -49,15 +49,10 @@ class BotCommands():
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def get_realcom(self, command, trigger_command_type):
|
def get_realcom(self, command, trigger_command_type):
|
||||||
commands_list = dict()
|
commands_list = list(self.dict['commands'][trigger_command_type].keys())
|
||||||
for commandstype in self.dict['commands'][trigger_command_type].keys():
|
if command in commands_list:
|
||||||
for com in self.dict['commands'][commandstype].keys():
|
if "aliasfor" in self.dict['commands'][trigger_command_type][command].keys():
|
||||||
if com not in commands_list.keys():
|
realcom = self.dict['commands'][trigger_command_type][command]
|
||||||
commands_list[com] = self.dict['commands'][commandstype][com]
|
|
||||||
realcom = command
|
|
||||||
if command in commands_list.keys():
|
|
||||||
if "aliasfor" in commands_list[command['com']].keys():
|
|
||||||
realcom = commands_list[command['com']]["aliasfor"]
|
|
||||||
return realcom
|
return realcom
|
||||||
|
|
||||||
def set_command_disabled(self, bot, command, channel, timestamp, reason, bywhom):
|
def set_command_disabled(self, bot, command, channel, timestamp, reason, bywhom):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user