diff options
| author | 2018-04-17 10:45:09 +0200 | |
|---|---|---|
| committer | 2018-04-17 10:45:09 +0200 | |
| commit | 7f0ee0036114481fc78ad31745e88894b4d5ab35 (patch) | |
| tree | f64c9636b1c819a96426f1a44c967aa22a76b13d | |
| parent | Contributor access to ClickUp commands (diff) | |
Allow Admins to use the eval cog. (#51)
| -rw-r--r-- | bot/cogs/eval.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/eval.py b/bot/cogs/eval.py index 9ad0dd9ba..adba8c327 100644 --- a/bot/cogs/eval.py +++ b/bot/cogs/eval.py @@ -12,7 +12,7 @@ from io import StringIO import discord from discord.ext.commands import AutoShardedBot, command -from bot.constants import OWNER_ROLE +from bot.constants import ADMIN_ROLE, OWNER_ROLE from bot.decorators import with_role from bot.interpreter import Interpreter @@ -177,7 +177,7 @@ async def func(): # (None,) -> Any await ctx.send(f"```py\n{out}```", embed=embed) @command() - @with_role(OWNER_ROLE) + @with_role(ADMIN_ROLE, OWNER_ROLE) async def eval(self, ctx, *, code: str): """ Run eval in a REPL-like format. """ code = code.strip("`") |