#how to make the bot be used in multiple servers

1 messages · Page 1 of 1 (latest)

azure flower
#

Database

grave burrow
azure flower
#

If you need to store data based on each server, you would likely use a dict so you can map queues to servers and other identifiers.
If you need this to be persistent, as in, survive a bot restart, you need a database.

grave burrow
#

like do u know how add options

#

like when i do /hi

#

then there should be a option

#

of these

#

can u show me any example

azure flower
#

Choices or autocomplete

young leafBOT
#
interactions/autocomplete.py

An example showcasing the two ways of adding autocompletion to slash command options.

grave burrow
#

and it auto fill it

azure flower
#

They both will provide options to the user.
Choices is strict and only allows the users to select from the available options. It cannot be dynamic though.
Autocomplete appears the same to the user, but does not enforce their selection and can be dynamically loaded.

grave burrow
#

like make me a command

#

and i will understand

azure flower
#

Like this - is autocomplete which dynamically loads the options based on what the user types

grave burrow
#

can u make me a command

#

i don't get by seeing their

#

reference

#

ngl

azure flower
#

No, but you can read the documentation I linked that literally has exampes.

grave burrow
#

i need someone to tell in simple words

azure flower
#

Then how you do you expect me to give you yet another example that you won't understand?

grave burrow
#

because the example command on the docs is hard i don't get it

azure flower
#

The documentation literally has more than 1 example command.

#

Then you need to hard stop, and go learn python.

#

It's a strict requirement for using disnake, discord.py, etc.

azure flower
#

I don't know what else to tell you. I'm not going to write your command for you. If you can't look at the 4+ examples in the documentation and the repo examples, then me giving you another example isn't going to help.