From 39b1f5ed0397c0c4b7f305ecfce9e7f8746e3ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Ani=C4=87=20Bani=C4=87?= Date: Mon, 7 May 2018 22:44:04 +0200 Subject: [PATCH] Lets not fuck up again --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a3a6f53d..d895bcbc 100644 --- a/bot.py +++ b/bot.py @@ -698,7 +698,7 @@ async def faq(ctx: Context): @faq.command() -async def list(ctx: Context): +async def listfaq(ctx: Context): """Lists all faq items.""" buffer = '```\n' for faq_item in FaqItem.select(): @@ -719,7 +719,7 @@ async def add(ctx: Context, key: str, text: str): if faq_item is None: FaqItem(key=key, text=text).save() await ctx.send("Item successfully saved!") - await faq.list.invoke(ctx) + await listfaq.invoke(ctx) refresh_faq_cache() else: await ctx.send("Item already exists at id {id}!".format(id=faq_item.id))