Administrator/administrator/modules/test/__init__.py
Florian Charlaix c9b83df928
All checks were successful
Build / SonarQube (push) Successful in 24s
Build / Tests (push) Successful in 1m36s
Build / Deploy (push) Successful in 1m15s
CI Add tests and package deploy
2024-02-19 20:44:34 +01:00

15 lines
408 B
Python

from discord import Interaction, app_commands, Object
from discord.ext.commands import Cog, Bot
class Test(Cog):
def __init__(self, bot: Bot) -> None:
self.bot = bot
@app_commands.command(name="ping")
async def ping(self, interaction: Interaction) -> None:
await interaction.response.send_message("Pong !", ephemeral=True)
async def setup(bot: Bot) -> None:
await bot.add_cog(Test(bot))