import json import random from pathlib import Path from discord.ext import commands from pydis_core.utils.logging import get_logger from bot.bot import Bot log = get_logger(__name__) NAMES = json.loads(Path("bot/resources/holidays/pride/drag_queen_names.json").read_text("utf8")) class DragNames(commands.Cog): """Gives a random drag queen name!""" @commands.command(name="dragname", aliases=("dragqueenname", "queenme")) async def dragname(self, ctx: commands.Context) -> None: """Sends a message with a drag queen name.""" await ctx.send(random.choice(NAMES)) async def setup(bot: Bot) -> None: """Load the Drag Names Cog.""" await bot.add_cog(DragNames())