stormbrigade_sheriff/cogs_old/ban_checker.py

22 lines
522 B
Python

from disnake.ext import commands
import disnake
import db
import httpx
from datetime import datetime
from loguru import logger
import sb_utils
import sb_emojis
class PTest(commands.Cog):
def __init__(self,bot):
self.bot = bot
@commands.slash_command()
async def test(self,inter: disnake.ApplicationCommandInteraction):
user = await inter.bot.fetch_user(inter.author.id)
await inter.send(user.banner)
def setup(bot):
logger.info(f"{__name__} Loaded")
bot.add_cog(PTest(bot))