Discord-Raid-bot/cogs/guide.py

120 lines
4.5 KiB
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
import discord
from discord.ext import commands
from config import AUTHORIZED_CHANNEL_ID
class Guide(commands.Cog):
"""Shows the list of available commands"""
def __init__(self, bot):
self.bot = bot
@commands.command(name="guide")
async def guide(self, ctx):
"""Shows all available commands with difficulties"""
if ctx.channel.id != AUTHORIZED_CHANNEL_ID:
return
embed = discord.Embed(
title="🧐 TEA Bot - Commands Guide",
description="Here are all available commands for tracking your Personal Bests!",
color=0x00bfff
)
# Damage format info
embed.add_field(
name="💠 Damage Formats",
value="**Accepted formats:** `1500000`, `1.5M`, `500K`, `2B`\n"
"**Suffixes:** K = thousands, M = millions, B = billions\n"
"**Shortcuts:** `nm` = Nightmare, `unm` = Ultra Nightmare",
inline=False
)
# Hydra PB commands
embed.add_field(
name="🐍 Hydra Commands",
value="**Difficulties:** Normal | Hard | Brutal | Nightmare (nm)\n"
"`!pbhydra <difficulty> <damage>` - Submit PB + screenshot\n"
"`!pbhydra <difficulty>` - Show your PB\n"
"`!pbhydra <difficulty> <user>` - Show user's PB",
inline=False
)
# Chimera PB commands
embed.add_field(
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"
"`!pbchimera <difficulty> <user>` - Show user's PB",
inline=False
)
# CvC PB commands
embed.add_field(
name="⚔️ CvC Commands",
value="`!pbcvc <damage>` - Submit PB + screenshot\n"
"`!pbcvc` - Show your PB\n"
"`!pbcvc <username>` - Show user's PB",
inline=False
)
# Mercy commands
embed.add_field(
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",
inline=False
)
# Global leaderboards
embed.add_field(
name="🌍 Global Leaderboards",
value="`!top10hydra <difficulty>` - Global Hydra rankings\n"
"`!top10chimera <difficulty>` - Global Chimera rankings\n"
"`!top10cvc` - Global CvC rankings",
inline=False
)
# Clan leaderboards
embed.add_field(
name="🏆 Clan Leaderboards",
value="**🔥 TEAI (Inferno):** `!teaihydra <diff>` `!teaichimera <diff>` `!teaicvc`\n"
"**🛡️ TEAF (Flame):** `!teafhydra <diff>` `!teafchimera <diff>` `!teafcvc`\n"
"**⚔️ TEAC (Cinder):** `!teachydra <diff>` `!teachimera <diff>` `!teaccvc`\n"
"**👑 TEACO (Corrupted Olympians):** `!teacohydra <diff>` `!teacochimera <diff>` `!teacocvc`",
inline=False
)
# Stats and help
embed.add_field(
name="📈 Stats & Info",
value="`!mystats` - View all your PBs\n"
"`!mystats <username>` - View someone's PBs\n"
"`!guide` - Show this help message",
inline=False
)
# Examples
embed.add_field(
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"
"`!teaihydra nm` - TEAI clan Nightmare rankings\n"
"**Always attach screenshot when submitting PBs!**",
inline=False
)
embed.set_footer(text="🎮 Old screenshots are automatically deleted when you set new PBs!")
await ctx.send(embed=embed)
async def setup(bot):
await bot.add_cog(Guide(bot))