Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (msg.author.bot) return;
- if(msg.channel.id =="484367012114464778" || msg.channel.id =="484366916723408937" || msg.channel.id =="484366988911575051" || msg.channel.id =="495009929711583243") {
- //ids for staff test rooms so I don't have to swap tabs
- // "472208905355919360" && "472209213247062026"
- //char limit for channel
- if(msg.member.roles.some(r=>["Staff","Moderator","Admin"].includes(r.name))){
- return;
- //else run play command
- }
- if (msg.content.length < 100){
- //console logging for my own use / moderation
- console.log(msg.author.username+' : '+ msg.author.id);
- console.log('in: '+msg.channel.name);
- console.log(msg.content);
- console.log(msg.createdAt);
- console.log('\n');
- //collect message and store to a variable, convert to string so nothing wonky happens
- var messageToSend = msg.content.toString();
- msg.delete();
- //message author their message
- msg.author.send(
- 'Hello, I am a bot. I had to remove your previous message in '+ msg.channel.name+' because it broke our roleplaying rule number 7.\n\
- **7.** __Follow the Channel\'s Roleplaying Limits. Details in their Descriptions.__\n\
- *- You should roleplay with more than 100 characters (~2 sentences) in the roleplaying channels.*\n\
- *- If roleplaying in the general channels, try to keep roleplaying messages below 400 characters (~3-4 sentences).\
- Otherwise, please move to the roleplaying channels*\n\
- *- As example, you should not roleplay with "moans", "pokes" without any other details in the roleplaying channels.*\n\
- Please change your message to comply to this rule.\n\n\
- **Do not respond to this message. If you have questions, please ask a staff member in the group.**\n\n\
- \nYour removed message:' +'\n"'+ messageToSend+'"');
- //empty data from messageToSend
- messageToSend = "";
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement