/twitchadd (name) (link)
name = choice name
link = choice value
10 Replies
You will have to store it in a database.
/twitchadd -> stores into database
Use autocomplete in /twitch.
That autocomplete will retrieve items from database
ik that but idk how
About saving in database:
1.
/twitchadd
will accept values from user
2. Values will be then saved in database
You can use any kind of SQL database, for eg: PostgreSQL, MySQL, etc
Or NoSQL ones like firestore, MongoDB, Redis
About using Autocomplete:
1. Enable autocomplete in /twitch
2. https://sapphirejs.dev/docs/Guide/interaction-handlers/autocomplete
3. Fetch values from database
4. Send it as search resultSapphire Framework
Autocomplete | Sapphire
Certain Chat Input Command options can be autocompleted based on what the user has written. There are two ways you can
i want to use a file to store data
or is that not possible
Search online on how to save data in a local file
That will act as database for your bot then
i tried all this the other day and ended up giving up and taking a break
this command is really annoying me
its really difficult for me
To be Frank, I would suggest using a database.
Saving to file will be a headache, unless you save it as JSON file. Still, reading from JSON file can become headache
im using sillydev to host
which has database
but idk how to access it
Search which kind of database it is
Find some packages in npm or internet which can connect to this database
Use it