Topic of Interest : Working with Discord.js
I am seeking advice on how to save collector data in a variable and access it outside of the file, for example in index.js. I aim to create a setup command that prompts users with questions when they type -setup
, stores their answers in variables, and uses these variables in the main file.
The three key questions I have are:
1 . How can multiple questions be presented to the user?
2 . Is it possible to save these questions in a variable for external use?
3 . What is the most effective way to determine if the setup has been completed by the user?
Current Project Scenario : I am currently developing a welcome message bot that requires manual configuration before it becomes operational on a server. Administrators must execute the -setup command which will gather details such as channel ID, custom message, invite image, etc. Once these details are provided, the bot will generate a customized embeded welcome message on the designated channel.
One final query: Is it necessary to implement a database for this functionality?