mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
keys
This commit is contained in:
parent
7d8744e927
commit
6980076a75
@ -21,7 +21,6 @@ def nickname_comand_commands(bot, trigger):
|
|||||||
commandused = 'list'
|
commandused = 'list'
|
||||||
else:
|
else:
|
||||||
commandused = spicemanip.main(trigger.sb['args'], 1).lower()
|
commandused = spicemanip.main(trigger.sb['args'], 1).lower()
|
||||||
bot.say(str(commandused))
|
|
||||||
|
|
||||||
commands_list = []
|
commands_list = []
|
||||||
for commandstype in SpiceBot.commands.dict['commands'].keys():
|
for commandstype in SpiceBot.commands.dict['commands'].keys():
|
||||||
@ -38,9 +37,9 @@ def nickname_comand_commands(bot, trigger):
|
|||||||
return
|
return
|
||||||
|
|
||||||
elif commandused == 'total':
|
elif commandused == 'total':
|
||||||
bot.osd("I have " + str(len(commands_list)) + " commands available.")
|
bot.osd("I have " + str(len(commands_list.keys())) + " commands available.")
|
||||||
return
|
return
|
||||||
|
|
||||||
elif commandused == 'random':
|
elif commandused == 'random':
|
||||||
bot.osd(["Here's a random command for you:", + spicemanip.main(commands_list, 'random')])
|
bot.osd(["Here's a random command for you:", + spicemanip.main(commands_list.keys(), 'random')])
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user