test
This commit is contained in:
parent
3e3eb2af77
commit
95f2bbc14d
@ -17,14 +17,13 @@ def sb_test_commands(bot, trigger):
|
|||||||
@plugin.nickname_command('command_groups')
|
@plugin.nickname_command('command_groups')
|
||||||
def sb_test_command_groups(bot, trigger):
|
def sb_test_command_groups(bot, trigger):
|
||||||
|
|
||||||
msgs = []
|
for plugin_name, cmds in collections.OrderedDict(sorted(bot.command_groups.items())).items():
|
||||||
|
bot.say(plugin_name)
|
||||||
for category, cmds in collections.OrderedDict(sorted(bot.command_groups.items())).items():
|
bot.say(str(cmds))
|
||||||
bot.say(category)
|
|
||||||
cmds = set(cmds) # remove duplicates
|
cmds = set(cmds) # remove duplicates
|
||||||
|
bot.say(str(cmds))
|
||||||
cmds = ' '.join(cmds)
|
cmds = ' '.join(cmds)
|
||||||
msg = category + ' ' + cmds
|
bot.say(str(cmds))
|
||||||
msgs.append(msg)
|
|
||||||
|
|
||||||
# sb.osd(msgs, trigger.sender)
|
# sb.osd(msgs, trigger.sender)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user