async def _(event): if event.fwd_from: return modules = "**List of available modules({0}):**\n".format(len(MODULE_LIST)) MODULE_LIST.sort() prev = "1" for module in MODULE_LIST: if prev[0] != module[0]: modules += f"\t{module[0].upper()}\t\n" modules += f"~ ```{module}```\n" prev = module modules += "\n\n**Tip --> Use .syntax <module_name> for more info.**" await event.edit(modules)
async def _(event): if event.fwd_from: return modules = "**List of available modules:**\n" MODULE_LIST.sort() prev = "1" num = 0 for module in MODULE_LIST: num += 1 if prev[0] != module[0]: modules += f"\n\n\t{module[0].upper()}\n\n" modules += f"~ ```{module}```\n" prev = module modules += f"**\n\nNumber of modules loaded: {num}**\n**Tip: Use .syntax <module_name> for more info.**" await event.edit(modules)