mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
22 lines
611 B
Python
22 lines
611 B
Python
from discord.ext import commands
|
|
|
|
|
|
def tryitandsee_command():
|
|
@commands.hybrid_command(
|
|
name="tryitandsee",
|
|
description="Try it and see",
|
|
)
|
|
async def tryitandsee(self, context):
|
|
link = "https://tryitands.ee/"
|
|
|
|
if getattr(context, "interaction", None):
|
|
inter = context.interaction
|
|
if not inter.response.is_done():
|
|
await inter.response.send_message(link, ephemeral=False)
|
|
else:
|
|
await inter.followup.send(link, ephemeral=True)
|
|
else:
|
|
await context.send(link)
|
|
|
|
return tryitandsee
|