From 32d1f4783cd2fb469df33e054b2d34df77ebedb9 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 21 Jul 2020 09:26:02 +0100 Subject: [PATCH] Making sure error function stays in enso.py --- cogs/fun/enso.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cogs/fun/enso.py b/cogs/fun/enso.py index 7c7b99fc..07caf07f 100644 --- a/cogs/fun/enso.py +++ b/cogs/fun/enso.py @@ -8,8 +8,12 @@ from discord.ext import commands from discord.ext.commands import cooldown, BucketType, command import settings -from cogs.anime.interactive import error_function -from settings import colour_list, enso_guild_ID +from settings import colour_list, enso_guild_ID, enso_ensochancommands_Mention + + +# Error handling function to make sure that the commands only work in "enso-chan-commands" +def error_function(): + return f"**Sorry! I only work in {enso_ensochancommands_Mention}**" # Gets the member and user avatar