if(['a','add','e','edit','delete','d'].includes(args[0].toLowerCase())&&((!tg||!tg.staffrole||!tg.staffrole.length||!message.member.roles.cache.has(tg.staffrole))&&!message.member.permissions.has("ADMINISTRATOR"))){returnmessage.channel.send("You must have the staff role or be an administrator in this server in order to edit AR settings.");}
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;}
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;}
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!");}