All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 29s
discord.py's built-in !help command exposes cog docstrings directly to Discord members — leaving them in French made the output partially French. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
504 B
Python
18 lines
504 B
Python
# -*- coding: utf-8 -*-
|
|
import discord
|
|
from discord.ext import commands
|
|
from utils.pb_handler import handle_pb_command
|
|
|
|
class Pbcvc(commands.Cog):
|
|
"""Cog for managing CvC Personal Bests (no difficulties)"""
|
|
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@commands.command(name="pbcvc")
|
|
async def pbcvc(self, ctx, *, target_user: str = None):
|
|
"""!pbcvc command"""
|
|
await handle_pb_command(ctx, 'cvc', target_user)
|
|
|
|
async def setup(bot):
|
|
await bot.add_cog(Pbcvc(bot))
|