mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
keys
This commit is contained in:
parent
7d8744e927
commit
6980076a75
@ -21,7 +21,6 @@ def nickname_comand_commands(bot, trigger):
|
||||
commandused = 'list'
|
||||
else:
|
||||
commandused = spicemanip.main(trigger.sb['args'], 1).lower()
|
||||
bot.say(str(commandused))
|
||||
|
||||
commands_list = []
|
||||
for commandstype in SpiceBot.commands.dict['commands'].keys():
|
||||
@ -38,9 +37,9 @@ def nickname_comand_commands(bot, trigger):
|
||||
return
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user