Merge pull request #41 from ancho/feature/shorter-modules-list
shorter modules list
This commit is contained in:
commit
ed020229a0
|
@ -121,9 +121,8 @@ class MatrixModule(BotModule):
|
||||||
async def show_modules(self, bot, room):
|
async def show_modules(self, bot, room):
|
||||||
await bot.send_text(room, "Modules:\n")
|
await bot.send_text(room, "Modules:\n")
|
||||||
for modulename, module in collections.OrderedDict(sorted(bot.modules.items())).items():
|
for modulename, module in collections.OrderedDict(sorted(bot.modules.items())).items():
|
||||||
module_message = f"Name: {modulename}\n"\
|
state = 'Enabled' if module.enabled else 'Disabled'
|
||||||
f"Enabled: {module.enabled} (Can be disabled: {module.can_be_disabled})\n"\
|
module_message = f"{state}: {modulename} - {module.help()}"
|
||||||
f"Description: {module.help()}\n"
|
|
||||||
await bot.send_text(room, module_message)
|
await bot.send_text(room, module_message)
|
||||||
|
|
||||||
def help(self):
|
def help(self):
|
||||||
|
|
Loading…
Reference in New Issue