lettrigger=awaitask(message,"What would you like the trigger to be? This is the message that will make your AR work.",120000);if(!trigger){returnnull;}
lettrigger=awaitask(message,"What would you like the trigger to be? This is the message that will make your AR work.",120000);if(!trigger){return;}
if(`${trigger}`.length>150){returnmessage.channel.send("Your trigger needs to be less than 150 characters, please!");}
if(`${trigger}`.length>150){returnmessage.channel.send("Your trigger needs to be less than 150 characters, please!");}
letresponse=awaitask(message,"What would you like my response to be?",120000);if(!response){returnnull;}
console.log(trigger);
letresponse=awaitask(message,"What would you like my response to be?",120000);if(!response){return;}
if(`${response}`.length>300){returnmessage.channel.send("Your response needs to be less than 300 characters, please!");}
if(`${response}`.length>300){returnmessage.channel.send("Your response needs to be less than 300 characters, please!");}
if(tar.triggers.length===20){returnmessage.channel.send("Because of data storage concerns, your ARs are capped at 20 per server. You can join the official support server and talk to the devs if you have a legitimate reason for raising this limit and they can see about raising it for you!");}
if(tar.triggers.length===20){returnmessage.channel.send("Because of data storage concerns, your ARs are capped at 20 per server. You can join the official support server and talk to the devs if you have a legitimate reason for raising this limit and they can see about raising it for you!");}
letm=awaitmessage.channel.send(`That user ${tu.statustype==='dnd'?'wishes not to be disturbed':'is AFK'}. Reason: ${tu.statusmsg}.${tu.statssetat?`\`(This status was set ${moment(tu.statussetat.getTime()).fromNow()})\``:''}`);
letm=awaitmessage.channel.send(`That user ${tu.statustype==='dnd'?'wishes not to be disturbed':'is AFK'}. Reason: ${tu.statusmsg}.${tu.statssetat?`\`(This status was set ${moment(tu.statussetat.getTime()).fromNow()})\``:''}`);