less sensitive rule for detection

This commit is contained in:
Neko Life 2021-05-27 23:17:35 +00:00
parent 5091dce3b5
commit d747c3bed6

View file

@ -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) {