add check for urls and codeblocks
This commit is contained in:
parent
e1c19be019
commit
550adea8ce
7
main.cjs
7
main.cjs
@ -222,6 +222,13 @@ function checkIfGirlfriend(message) {
|
|||||||
}
|
}
|
||||||
function checkIfExempt(message) {
|
function checkIfExempt(message) {
|
||||||
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
|
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
|
||||||
|
if (message.content.contains("http", "https")) {
|
||||||
|
message.react('🌐');
|
||||||
|
message.react('🔗');
|
||||||
|
return true;
|
||||||
|
} else if (message.content.contains("```")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (!message.author.bot) {
|
if (!message.author.bot) {
|
||||||
if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||||
if (!message.member.roles.cache.some(role => role.name == "NoReactions")) {
|
if (!message.member.roles.cache.some(role => role.name == "NoReactions")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user