From 4d4aa8038db6303e62ba1cc44359c6c14b98af1f Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 9 Apr 2020 13:49:29 -0700 Subject: [PATCH] [Hunting] No more magical mystery hunting --- hunting/hunting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hunting/hunting.py b/hunting/hunting.py index 2ff0441..9a95afe 100644 --- a/hunting/hunting.py +++ b/hunting/hunting.py @@ -11,7 +11,7 @@ from redbot.core.utils.chat_formatting import bold, box, humanize_list, humanize from redbot.core.utils.menus import menu, DEFAULT_CONTROLS -__version__ = "3.0.3" +__version__ = "3.0.4" class Hunting(commands.Cog): @@ -271,6 +271,10 @@ class Hunting(commands.Cog): async def _wait_for_bang(self, guild, channel): def check(message): + if guild != message.guild: + return False + if channel != message.channel: + return False return message.content.lower().split(" ")[0] == "bang" if message.content else False animal = random.choice(list(self.animals.keys()))