DeepBlue/util/checking.py

13 lines
272 B
Python
Raw Normal View History

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