2024-08-06 19:51:24 +00:00
|
|
|
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!",
|
|
|
|
)
|
2024-08-06 20:05:25 +00:00
|
|
|
async def hellousercommand(self, inter: disnake.ApplicationCommandInteraction):
|
|
|
|
await inter.response.send_message("User installable commands everyone!")
|
|
|
|
|
|
|
|
@commands.user_command(
|
|
|
|
name="meonlytest",
|
|
|
|
description="say hi anywhere!",
|
|
|
|
)
|
|
|
|
async def meonlytestcommand(self, inter: disnake.ApplicationCommandInteraction):
|
2024-08-06 19:51:24 +00:00
|
|
|
await inter.response.send_message("User installable commands everyone!")
|
|
|
|
|
|
|
|
def setup(bot: commands.Bot):
|
|
|
|
bot.add_cog(usercommands(bot))
|