mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +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) {
|
||||
if (content.length > 5) {
|
||||
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`');
|
||||
return newCont;
|
||||
content = content.replace(/(https:\/\/)?(www\.)?discord\.gg\/(?:\w{2,15}(?!\w)(?= *))/, '`Some invite link goes here`');
|
||||
}
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue