mirror of
https://github.com/danbulant/Shasha
synced 2026-07-06 19:41:04 +00:00
less sensitive rule for detection
This commit is contained in:
parent
5091dce3b5
commit
d747c3bed6
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = function emoteMessage(client, content) {
|
module.exports = function emoteMessage(client, content) {
|
||||||
const emotes = content.match(/(?<![<a]):\w{1,32}:(?!\d{17,19}>)/g);
|
const emotes = content.match(/:\w{1,32}:(?!\d{17,19}>)/g);
|
||||||
if (emotes?.length > 0) {
|
if (emotes?.length > 0) {
|
||||||
let theEmotes = [];
|
let theEmotes = [];
|
||||||
for (const emoteName of emotes) {
|
for (const emoteName of emotes) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue