blob: 6a89db0a83b27d95bba0da124b085b4acb43e22b (
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 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())
|