mirror of
https://github.com/danbulant/Shasha
synced 2026-05-27 13:51:53 +00:00
adCheck small bug
This commit is contained in:
parent
129e070cb8
commit
de80d353e7
1 changed files with 2 additions and 2 deletions
|
|
@ -247,10 +247,10 @@ function tryReact(msg, reaction) {
|
||||||
function sentAdCheck(content) {
|
function sentAdCheck(content) {
|
||||||
if (content.length > 5) {
|
if (content.length > 5) {
|
||||||
if (/(https:\/\/)?(www\.)?discord\.gg\/(?:\w{2,15}(?!\w)(?= *))/.test(content)) {
|
if (/(https:\/\/)?(www\.)?discord\.gg\/(?:\w{2,15}(?!\w)(?= *))/.test(content)) {
|
||||||
let newCont = content.replace(/(https:\/\/)?(www\.)?discord\.gg\/(?:\w{2,15}(?!\w)(?= *))/, '`Some invite link goes here`');
|
content = content.replace(/(https:\/\/)?(www\.)?discord\.gg\/(?:\w{2,15}(?!\w)(?= *))/, '`Some invite link goes here`');
|
||||||
return newCont;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue