Discord-Raid-bot/cogs/pbhydra.py
LE BERRE Mickael 6621599fc6
All checks were successful
Deploy Bot on NAS / deploy (push) Successful in 29s
i18n: translate all French comments, docstrings and logs to English
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>
2026-06-01 13:56:36 +02:00

18 lines
535 B
Python

# -*- coding: utf-8 -*-
import discord
from discord.ext import commands
from utils.pb_handler import handle_pb_command
class Pbhydra(commands.Cog):
"""Cog for managing Hydra Personal Bests"""
def __init__(self, bot):
self.bot = bot
@commands.command(name="pbhydra")
async def pbhydra(self, ctx, arg1: str = None, *, arg2: str = None):
"""!pbhydra command with difficulty handling"""
await handle_pb_command(ctx, 'hydra', arg1, arg2)
async def setup(bot):
await bot.add_cog(Pbhydra(bot))