Discord-Raid-bot/cogs/pbhydra.py
LE BERRE Mickael 314483e4f5 fix: support multi-word usernames in pb lookup commands
Sans le *, discord.py tronquait les noms avec espaces au premier mot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 11:52:04 +02:00

18 lines
562 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 pour gérer les Personal Bests Hydra"""
def __init__(self, bot):
self.bot = bot
@commands.command(name="pbhydra")
async def pbhydra(self, ctx, arg1: str = None, *, arg2: str = None):
"""Commande !pbhydra avec gestion des difficultés"""
await handle_pb_command(ctx, 'hydra', arg1, arg2)
async def setup(bot):
await bot.add_cog(Pbhydra(bot))