2025-09-28 10:53:12 -04:00
|
|
|
import discord
|
|
|
|
|
from discord.ext import commands
|
|
|
|
|
from discord.ext.commands import Context
|
|
|
|
|
|
|
|
|
|
|
2025-09-28 23:08:07 -04:00
|
|
|
def tryitandsee_command():
|
2025-09-28 10:53:12 -04:00
|
|
|
@commands.hybrid_command(
|
|
|
|
|
name="tryitandsee",
|
|
|
|
|
description="Try it and see",
|
|
|
|
|
)
|
2025-09-28 23:08:07 -04:00
|
|
|
async def tryitandsee(self, context):
|
2025-10-04 19:31:06 -04:00
|
|
|
link = "https://tryitands.ee/"
|
2025-11-02 23:32:52 -05:00
|
|
|
|
2025-09-28 10:53:12 -04:00
|
|
|
if getattr(context, "interaction", None):
|
|
|
|
|
inter = context.interaction
|
|
|
|
|
if not inter.response.is_done():
|
2025-10-04 19:31:06 -04:00
|
|
|
await inter.response.send_message(link, ephemeral=False)
|
2025-09-28 10:53:12 -04:00
|
|
|
else:
|
2025-10-04 19:31:06 -04:00
|
|
|
await inter.followup.send(link, ephemeral=True)
|
2025-09-28 10:53:12 -04:00
|
|
|
else:
|
2025-10-04 19:31:06 -04:00
|
|
|
await context.send(link)
|
2025-11-02 23:32:52 -05:00
|
|
|
|
2025-09-28 23:08:07 -04:00
|
|
|
return tryitandsee
|