aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/pride/drag_queen_name.py
blob: 15ca65767378ee9cdd236511fa09ad8e5f761668 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import json
import logging
import random
from pathlib import Path

from discord.ext import commands

from bot.bot import Bot

log = logging.getLogger(__name__)

NAMES = json.loads(Path("bot/resources/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))


def setup(bot: Bot) -> None:
    """Load the Drag Names Cog."""
    bot.add_cog(DragNames())