From 14843b567afb4032da882cbd2c67406991a230aa Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 20 Jul 2020 09:54:23 +0100 Subject: [PATCH] Making sure that only people in Enso can use the Enso command --- cogs/fun/enso.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/fun/enso.py b/cogs/fun/enso.py index e97875dd..e95cc9c7 100644 --- a/cogs/fun/enso.py +++ b/cogs/fun/enso.py @@ -47,6 +47,9 @@ class Enso(commands.Cog): @cooldown(1, 1, BucketType.user) async def enso_person(self, ctx, name=None): + if not ctx.guild.id == settings.enso_guild_ID: + return + # Defining array of all the people that have images stored in the bot array = ['hammy', 'hussein', 'inna', 'kate', 'calvin', 'lukas', 'stitch', 'corona', 'ging', 'ash',