From d434dad374d8cd2a9deebcd0a88b246a95aca072 Mon Sep 17 00:00:00 2001 From: insert Date: Tue, 6 Aug 2024 15:51:24 -0400 Subject: [PATCH] update --- usercommands.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 usercommands.py diff --git a/usercommands.py b/usercommands.py new file mode 100644 index 0000000..250f8d4 --- /dev/null +++ b/usercommands.py @@ -0,0 +1,24 @@ +import disnake +from disnake.ext import commands +from disnake import TextInputStyle +from dotenv import load_dotenv +from random import randint +import aiosqlite as sqlite3 +import aiohttp +from urllib.parse import urlparse +import os + +class usercommands(commands.Cog): + + def __init__(self, bot: commands.Bot): + self.bot = bot + + @commands.user_command( + name="hello", + description="say hi anywhere!", + ) + async def query(self, inter: disnake.ApplicationCommandInteraction): + await inter.response.send_message("User installable commands everyone!") + +def setup(bot: commands.Bot): + bot.add_cog(usercommands(bot)) \ No newline at end of file