mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
better alias finding
This commit is contained in:
parent
b2a7c5e3ca
commit
f2dbfc9589
@ -25,6 +25,9 @@ def query_detection(bot, trigger):
|
||||
if com not in commands_list.keys():
|
||||
if commandstype == 'nickname':
|
||||
commands_list[str(bot.nick) + " " + com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
if "aliasfor" in commands_list[str(bot.nick) + " " + com].keys():
|
||||
aliasforcom = commands_list[str(bot.nick) + " " + com]["aliasfor"]
|
||||
commands_list[str(bot.nick) + " " + com]["aliasfor"] = str(bot.nick) + " " + aliasforcom
|
||||
else:
|
||||
commands_list[com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user