Limit .cox to ot and staff

This commit is contained in:
Ave Ozkal 2019-12-19 04:35:17 +03:00
parent ee2ec67c17
commit 5174da59aa
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D

View file

@ -1,6 +1,7 @@
import discord
from discord.ext import commands
from discord.ext.commands import Cog
from helpers.checks import check_if_staff_or_ot
import textwrap
import PIL.Image
import PIL.ImageFilter
@ -13,7 +14,8 @@ class ImageManip(Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.check(check_if_staff_or_ot)
@commands.command(hidden=True)
async def cox(self, ctx, *, headline: str):
"""Gives a cox headline"""
mention = ctx.author.mention