.setDescription("Create a secret santa for all of your friends or for your server! Whether you celebrate the holidays or not, this can still be loads of fun!")
if(client.misc.activeDMs.has(message.author.id)){returnmessage.reply("I'm already asking you questions in DM for a separate command! Finish that command before using this one.");}
letmesg=awaitmessage.author.send("I'll be asking you a few questions here about how you want your Secret Santa to go! You can simply ignore the messages for a few minutes to cancel the process.").catch(()=>{message.reply("Please open your DMs so I can ask you some questions!");});
letdmch=mesg.channel;
letconf=awaitask(mesg,"This secret santa will be tied to your account, and you will be considered the host. Is this okay?",60000);if(!conf){return;}
if(['n','no'].includes(conf.trim().toLowerCase())){returndmch.send("Oh, alrighty! Have the person who wants to be the host execute this same command.");}
if(!['yes','ye','y','sure'].includes(conf.trim().toLowerCase())){returndmch.send("Please specify yes or no you weeb!");}
letstart=awaitask(mesg,"When will you begin the secret santa? (You'll start it manually, so don't worry about formatting.",60000);if(!start){return;}
if(start.length>150){returndmch.send("Heya there, just a few words, please! I don't wanna have to read out an essay about when it's starting to all the people that want to hear about your secret santa!");}
letend=awaitask(mesg,"When will you end the secret santa? (You'll also end it manually.)",60000);if(!start){return;}
if(end.length>150){returndmch.send("Heya there, just a few words, please! I don't wanna have to read out an essay about when it's ending to all the people that want to hear about your secret santa!");}
letspend=awaitask(mesg,"What is your maximum and minimum spending? This is useful so that everyone gets an equal gift or gifts. This will be shown to the people that buy their gifts.",360000);if(!spend){return;}
if(spend.length>500){returndmch.send("Mate, this is not a dissertation! Let's keep it under 500 characters, please!");}
letanon=awaitask(mesg,"Will you be keeping this secret santa totally anonymous, or will you let the gift recipients know who their gifters are when they are opened?",360000);if(!anon){return;}