previes commands: @bot.tree.command(name="searchmap", description="Checks the map for a…
- User
previes commands: @bot.tree.command(name="searchmap", description="Checks the map for a clan | Tracking") async def searchmap(Interaction: discord.Interaction, clan:str):
task: in python, make a discord bot that makes data for eachuser where they can chose an option; invisible messages or public
- Assistant
commands. The bot should store their choice in a database and retrieve it when needed. The bot should also have a command called "setvisibility" which allows users to switch between invisible messages and public commands.
- User
give me the python code
- Assistant
Here's a sample code for creating a Discord bot that allows users to choose between invisible messages or public commands and store their choice in a database:
python