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.");}
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.");}
functionviewARs(tar){
lett=tar.triggers;
letar=tar.ars;
lets='';
for(leti=0;i<t.length;i++){s+=``;}
}
if(['a','add'].includes(args[0].toLowerCase())){
if(['a','add'].includes(args[0].toLowerCase())){
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){returnnull;}
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!");}
@ -32,6 +40,7 @@ module.exports = {
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!");}