Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms
This commit is contained in:
commit
5e1aa6cc4d
9
main.cjs
9
main.cjs
@ -154,6 +154,7 @@ global.checkMessage = function checkMessage(message, runFromGlobal) {
|
||||
if (message.author.id == "1091120267851485215") {
|
||||
return;
|
||||
}
|
||||
h(message);
|
||||
console.log(`${message.author.tag} in #${message.channel.name} sent: ${message.content}`);
|
||||
}
|
||||
//console.log(message.author);
|
||||
@ -213,6 +214,12 @@ global.checkMessage = function checkMessage(message, runFromGlobal) {
|
||||
replyMessage(message, correctedMessage, abbrsUsed);
|
||||
}
|
||||
|
||||
function h(message) {
|
||||
if (!message.author.bot && message.author.id == "205475706296205312" && message.content.includes('h')) {
|
||||
message.react('🇭');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
function checkIfGirlfriend(message) {
|
||||
if (message.author.id == "698360641731166238") {
|
||||
@ -221,6 +228,7 @@ function checkIfGirlfriend(message) {
|
||||
}
|
||||
}
|
||||
function checkIfExempt(message) {
|
||||
if (!message.author.bot) {
|
||||
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
|
||||
if (message.content.includes("http", "https")) {
|
||||
message.react('🌐');
|
||||
@ -229,7 +237,6 @@ function checkIfExempt(message) {
|
||||
} else if (message.content.includes("```")) {
|
||||
return true;
|
||||
}
|
||||
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 == "NoReactions")) {
|
||||
message.react('🇵');
|
||||
|
Loading…
Reference in New Issue
Block a user