-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tags
Description
Tag Name
slash-cmds-in-d.py-v2.0
What kind of content should the tag include?
How to create / command in d.pyv2.0a
To create a Bot for / commands and context-menus in python there's a library named dpy-appcommands
Install it by
python3 -m pip install dpy-appcommands -UA / cmd
import appcommands
#making a bot
bot = appcommands.Bot(command_prefix="$")
# / cmd
@bot.slashcommand()
async def hi(ctx):
await ctx.send("hello", ephemeral=True)For full docs click here
Metadata
Metadata
Assignees
Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tags