Created
October 27, 2024 06:13
-
-
Save AJXD2/035418dc198ddda82d9a760da66c7dbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from disnake.ext import commands | |
import disnake | |
bot = commands.InteractionBot(reload=True) | |
@bot.user_command( | |
name="hello", | |
dm_permission=True, | |
) | |
async def hello(inter: disnake.UserCommandInteraction): | |
await inter.send(f"hello {inter.target.mention}") | |
bot.run("...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment