DeepBlue/util/checking.py

11 lines
236 B
Python
Raw Normal View History

2020-01-08 02:26:36 +01:00
'''
This module will provide permission checks
for the command executions.
'''
2020-01-07 18:04:00 +01:00
import discord
from discord.ext import commands
from util import logging
2020-01-08 02:26:36 +01:00
def is_author_bot(ctx : commands.Context) -> bool:
2020-01-08 17:09:10 +01:00
return (not ctx.author.bot)