13 lines
460 B
Python
13 lines
460 B
Python
from interactions import Extension, slash_command, SlashContext
|
|
from gwendolyn.utils import PARAMS as params
|
|
|
|
class GamesExtension(Extension):
|
|
"""Contains the game commands."""
|
|
@slash_command(**params["games"]["money"]["balance"])
|
|
async def balance(self, ctx: SlashContext):
|
|
await self.bot.money.sendBalance(ctx)
|
|
|
|
@slash_command(**params["games"]["money"]["give"])
|
|
async def give(self, ctx: SlashContext):
|
|
await self.bot.money.giveMoney(ctx)
|