diff options
| author | 2021-08-30 09:52:14 +0100 | |
|---|---|---|
| committer | 2021-08-30 09:52:14 +0100 | |
| commit | a7f0bb042a3ff8f2ce41504c705d0d0a199734a3 (patch) | |
| tree | 27f9d5752fb93d5e3355fae0ca4d61e7ccb520d3 /bot/exts/internal_eval | |
| parent | Whitelist `.bm` command in occupied help channels (diff) | |
| parent | Add baby anaconda to snake hatch (#822) (diff) | |
Merge branch 'main' into patch-1
Diffstat (limited to 'bot/exts/internal_eval')
| -rw-r--r-- | bot/exts/internal_eval/_internal_eval.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py index 56bf5add..b7749144 100644 --- a/bot/exts/internal_eval/_internal_eval.py +++ b/bot/exts/internal_eval/_internal_eval.py @@ -7,7 +7,7 @@ import discord from discord.ext import commands from bot.bot import Bot -from bot.constants import Roles +from bot.constants import Client, Roles from bot.utils.decorators import with_role from bot.utils.extensions import invoke_help_command from ._helpers import EvalContext @@ -41,6 +41,9 @@ class InternalEval(commands.Cog): self.bot = bot self.locals = {} + if Client.debug: + self.internal_group.add_check(commands.is_owner().predicate) + @staticmethod def shorten_output( output: str, |