if(client.misc.activeDMs.has(message.author.id)){returnmessage.channel.send("I'm already asking you questions in a DM! Finish that first, then try this command again.");}
letmesg=awaitmessage.author.send("I'm going to ask you some questions about the character's info. Just reply with the answer and use good grammar and spelling and be as accurate as possible. To cancel the process, just leave the question unanswered for a few minutes and I'll let you know that the question timed out and is not longer answerable.")
.catch(()=>{returnmessage.reply("Something went wrong there! Most likely, your DMs are closed.");});
if(message.guild){awaitmesg.channel.send("Check your DMs!");}
options.name=awaitask(mesg,"What is the character's name?",60000,true);if(!options.name){return;}
if(options.name.length>75){clearDM();returndmch.send("The character name can't be more than 75 characters!");}
options.anime=awaitask(mesg,"What anime (or game) did the character appear in? If the character is an OC, say 'none'",6000,true);if(!options.anime){return;}
if(options.anime.length>75){clearDM();returndmch.send("The anime name can't be more than 75 characters!");}
if(!conf){returnmesg.channel.send("Well, I've got nothing, then. If that doesn't match the anime you're looking for then I would try again with a more narrow search.");}
options.gender=awaitask(mesg,"What is the character's gender?",60000,true);if(!options.name){return;}
if(options.gender.length>75){clearDM();returndmch.send("That's one heck of a gender. Maybe like... abbreviate?");}
options.thumbnail=awaitask(mesg,"Give me an image **URL** *do not upload the image* to use for the character",120000,true);if(!options.thumbnail){returnclearDM();}
if(options.thumbnail.length>350){clearDM();returndmch.send("That URL is a bit too long. Consider uploading it to imgur or another image sharing site and trying again.");}
}catch{returnmessage.channel.send(":thinking: hmmm... something went wrong there. I might not have permissions to add reactions to messages, and this could be the issue.");}
returnmessage.author.send(`Your character has been ${!queue?"added":"submitted"}`);
}else{
returnmessage.author.send("Oh, okay. I'll discard that then!");
}
});
rc.on("end",collected=>{if(!collected.size){returnmessage.author.send("Looks like you ran out of time! Try again?");}});
}catch{returnmessage.channel.send("Hmm... there was some kind of error when I tried to submit that character. Try again, and if it keeps not working, then go yell at my devs!");}