feat: Add RPG cog with character and inventory features

Sets up RPG system as a Redbot cog with core mechanics
Implements character creation, class selection, and stat management
Adds action commands for attacking and healing
Provides inventory and shop functionality for item management
Introduces interactive UI menus for user engagement
This commit is contained in:
2025-09-11 17:23:45 -04:00
parent 859ac84b68
commit e0958f6f2a
9 changed files with 756 additions and 0 deletions

21
rpg/commands.py Normal file
View File

@@ -0,0 +1,21 @@
import discord
from redbot.core import commands
from .menu import RPGMenu
class RPGCommands(commands.Cog):
"""
Handles user commands (primarily menus) for the RPG system.
"""
def __init__(self, rpg_cog, bot):
self.rpg_cog = rpg_cog
self.bot = bot
super().__init__()
@commands.command(name="menu")
async def menu_command(self, ctx):
"""
Display the RPG menu.
"""
view = RPGMenu(self.rpg_cog)
await ctx.send("Choose an action:", view=view)