Problem related to : Discord.js
I just want to ask that how can I add my collectors data in a variable and use it outside from the file such as use it on index.js. I just want to create a setup command that when user type -setup
it will automatically ask some questions and store those answers to variables and based on those variables it will add those variables on main file.
Basically I have three questions :
1 . how can I ask multiple questions to the user.
2 . How can I store those questions in a variable and use it outside from the file
3 . How can I filter that if the user has done the setup or not.
What am I working on : I am working on a welcome message bot, what it does that when we add him to our server it doesn't so anything, admin have to setup this bot for setting welcome message to your server .Admin have to use -setup command, what this -setup command do ? this command add a bunch of questions that what is channel id, what's your message, what's your invite pic etc., after gaining those answers he will setup a welcome message to the channel he/she provided, this message will be in a from of embed so I have to gain the embed title, avatar, description from the user.
One last question: do I need to setup a database for this?