mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 12:22:00 +00:00
Fix: small bug
This commit is contained in:
parent
4281c713cb
commit
63cfd01076
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
module.exports = function emoteMessage(client, content) {
|
||||
const emotes = content.match(/(?<![<a]):\w{1,32}:(?!\d{17,19}>)/g);
|
||||
if (emotes.length > 0) {
|
||||
if (emotes?.length > 0) {
|
||||
let theEmotes = [];
|
||||
for (const emoteName of emotes) {
|
||||
let findThis = emoteName.slice(1, -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue