24 lines
668 B
Python
24 lines
668 B
Python
import typing
|
|
|
|
from interactions import Extension, slash_command, SlashContext, User, Client
|
|
from gwendolyn.utils import PARAMS as params
|
|
|
|
|
|
if typing.TYPE_CHECKING:
|
|
from gwendolyn_client import Gwendolyn
|
|
|
|
class GamesExtension(Extension):
|
|
"""Contains the game commands."""
|
|
|
|
def dummy(self):
|
|
# For type checking:
|
|
self.bot: "Gwendolyn"
|
|
|
|
@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, user: User, amount: int):
|
|
await self.bot.money.giveMoney(ctx, user, amount)
|