Discord-Raid-bot/cogs/guide.py

119 lines
4.5 KiB
Python
Raw Normal View History

2025-08-26 17:35:54 +00:00
# -*- coding: utf-8 -*-
2025-08-22 13:25:34 +00:00
import discord
from discord.ext import commands
from config import AUTHORIZED_CHANNEL_ID
class Guide(commands.Cog):
2025-08-26 17:35:54 +00:00
"""Affiche la liste des commandes disponibles"""
2025-08-22 13:25:34 +00:00
def __init__(self, bot):
self.bot = bot
@commands.command(name="guide")
async def guide(self, ctx):
2025-08-26 17:35:54 +00:00
"""Affiche toutes les commandes disponibles avec les difficultés"""
2025-08-22 13:25:34 +00:00
if ctx.channel.id != AUTHORIZED_CHANNEL_ID:
return
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
embed = discord.Embed(
2025-08-26 17:35:54 +00:00
title="🧐 RTF Bot - Commands Guide",
2025-08-22 13:25:34 +00:00
description="Here are all available commands for tracking your Personal Bests!",
color=0x00bfff
)
2025-08-26 17:35:54 +00:00
# Info sur les formats de dégâts
2025-08-22 13:25:34 +00:00
embed.add_field(
2025-08-26 17:35:54 +00:00
name="💠 Damage Formats",
value="**Accepted formats:** `1500000`, `1.5M`, `500K`, `2B`\n"
"**Suffixes:** K = thousands, M = millions, B = billions\n"
2025-08-25 16:09:37 +00:00
"**Shortcuts:** `nm` = Nightmare, `unm` = Ultra Nightmare",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Commandes PB Hydra
embed.add_field(
2025-08-26 17:35:54 +00:00
name="🐍 Hydra Commands",
value="**Difficulties:** Normal | Hard | Brutal | Nightmare (nm)\n"
"`!pbhydra <difficulty> <damage>` - Submit PB + screenshot\n"
"`!pbhydra <difficulty>` - Show your PB\n"
2025-08-25 16:09:37 +00:00
"`!pbhydra <difficulty> <user>` - Show user's PB",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Commandes PB Chimera
embed.add_field(
2025-08-26 17:35:54 +00:00
name="🦁 Chimera Commands",
value="**Difficulties:** Easy | Normal | Hard | Brutal | Nightmare (nm) | Ultra (unm)\n"
"`!pbchimera <difficulty> <damage>` - Submit PB + screenshot\n"
"`!pbchimera <difficulty>` - Show your PB\n"
2025-08-25 16:09:37 +00:00
"`!pbchimera <difficulty> <user>` - Show user's PB",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Commandes PB CvC
embed.add_field(
2025-08-26 17:35:54 +00:00
name="⚔️ CvC Commands",
value="`!pbcvc <damage>` - Submit PB + screenshot\n"
"`!pbcvc` - Show your PB\n"
2025-08-25 16:09:37 +00:00
"`!pbcvc <username>` - Show user's PB",
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-25 16:09:37 +00:00
# Commandes Mercy
embed.add_field(
2025-08-26 17:35:54 +00:00
name="🎲 Mercy Commands",
value="`!mercy show` - Show your current mercy pulls\n"
"`!mercy add <nb> <type>` - Add pulls to a shard type\n"
"`!mercy reset <type>` - Reset pulls for a shard type\n"
"**Available types:** ancient, void, sacred, primal, remnant",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Classements globaux
embed.add_field(
2025-08-26 17:35:54 +00:00
name="🌍 Global Leaderboards",
value="`!top10hydra <difficulty>` - Global Hydra rankings\n"
"`!top10chimera <difficulty>` - Global Chimera rankings\n"
2025-08-25 16:09:37 +00:00
"`!top10cvc` - Global CvC rankings",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Classements par clan
embed.add_field(
2025-08-26 17:35:54 +00:00
name="🏆 Clan Leaderboards",
value="**RTF:** `!rtfhydra <diff>` `!rtfchimera <diff>` `!rtfcvc`\n"
"**RTFC:** `!rtfchydra <diff>` `!rtfcchimera <diff>` `!rtfccvc`\n"
2025-08-25 16:09:37 +00:00
"**RTFR:** `!rtfrhydra <diff>` `!rtfrchimera <diff>` `!rtfrcvc`",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Stats et aide
embed.add_field(
2025-08-26 17:35:54 +00:00
name="📈 Stats & Info",
value="`!mystats` - View all your PBs\n"
"`!mystats <username>` - View someone's PBs\n"
2025-08-25 16:09:37 +00:00
"`!guide` - Show this help message",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
2025-08-22 13:25:34 +00:00
# Instructions
embed.add_field(
2025-08-26 17:35:54 +00:00
name="⚡ Examples",
value="`!pbhydra brutal 1.5M` - Submit Brutal Hydra PB\n"
"`!pbchimera unm 500K` - Submit Ultra Nightmare PB\n"
"`!pbcvc 2.3M` - Submit CvC PB\n"
"`!mercy add 50 primal` - Add 50 pulls to Primal shard\n"
"`!mercy show` - Show your mercy pulls\n"
"`!rtfhydra nm` - RTF clan Nightmare rankings\n"
2025-08-25 16:09:37 +00:00
"**Always attach screenshot when submitting PBs!**",
2025-08-22 13:25:34 +00:00
inline=False
)
2025-08-26 17:35:54 +00:00
embed.set_footer(text="🎮 Old screenshots are automatically deleted when you set new PBs!")
2025-08-22 13:25:34 +00:00
await ctx.send(embed=embed)
2025-08-26 17:35:54 +00:00
2025-08-25 16:09:37 +00:00
async def setup(bot):
await bot.add_cog(Guide(bot))