if(args.length<2){returnmessage.reply('The command format is _!setup welcome\\_message_\nUse _{sn}_ to insert the server name, _{un}_ to insert the user name, and _{ut}_ to insert the user tag\nExample: _!setup welcome\\_message Welcome to {sn} Sir {un}#{ut}_');}
letmsg="";
for(leti=1;i<args.length;i++){
msg+=args[i]+' ';
}
if(msg.length>30){returnmessage.reply('Please specify a welcome message under 30 characters!');}
message.reply(`Made ${channel} the new Selmer Bot Logs channel!`);
}elseif(command=='log_severity'){
consttier=args[1];
constl=['none','low','medium','high'];
if(!l.includes(tier)){returnmessage.reply("Please select an existing tier ('none', 'low', 'medium', 'high')");}
dbo.updateOne({_id:'LOG'},{$set:{severity:tier}})
}
elseif(command=='help'){
lettemp;
if(args[1]=='welcome'){
temp='Use _!setup welcome\\_channel [channel name]_ to set the welcome channel and _!setup welcome\\_message [message]_ to set a welcome message!\n';
}elseif(args[1]=='logs'){
temp='To enable logging, use the command _!setup keep\\_logs true_ and _!setup log\\_channel_ to set up the logging channel!\n';
temp+='Use _!setup keep\\_logs false_ to disable logging and _!setup log\\_severity [none, low, medium, high]_ to set the threshold\n';
temp+='__Severities:__\n*none* - unmute, unban\n*low* - mute\n*medium* - kick\n*high* - ban\nEvery tier also includes all notifs for ***higher*** tiers (AKA _!setup log\\_severity none_ will log everything from every severity)\n';
}else{temp='Please use the following format: _!setup help [welcome, logs]_\nExample: _!setup help welcome_';}