utility.jumbo: fix custom emotes
This commit is contained in:
parent
be5e820807
commit
24f18d44ad
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ EMOJI_SETS.ms = EMOJI_SETS.mustd;
|
||||||
EMOJI_SETS.twitter = EMOJI_SETS.twemoji;
|
EMOJI_SETS.twitter = EMOJI_SETS.twemoji;
|
||||||
EMOJI_SETS.fb = EMOJI_SETS.facebook;
|
EMOJI_SETS.fb = EMOJI_SETS.facebook;
|
||||||
|
|
||||||
const CUSTOM_EMOTE_REGEX = /^<(?:\u200b|&)?(a)?:(\w+):(\d+)>/;
|
const CUSTOM_EMOTE_REGEX = /<(?:\u200b|&)?(a)?:(\w+):(\d+)>/;
|
||||||
|
|
||||||
const fetch = require("node-fetch");
|
const fetch = require("node-fetch");
|
||||||
const sharp = require("sharp");
|
const sharp = require("sharp");
|
||||||
|
@ -438,7 +438,7 @@ jumbo.addAlias("emote");
|
||||||
jumbo.addAlias("emoji");
|
jumbo.addAlias("emoji");
|
||||||
jumbo.callback = async function (msg, line) {
|
jumbo.callback = async function (msg, line) {
|
||||||
if (CUSTOM_EMOTE_REGEX.test(line)) {
|
if (CUSTOM_EMOTE_REGEX.test(line)) {
|
||||||
const [_, __, animatedFlag, name, id] = line.match(CUSTOM_EMOTE_REGEX);
|
const [_, animatedFlag, name, id] = line.match(CUSTOM_EMOTE_REGEX);
|
||||||
const animated = animatedFlag === "a";
|
const animated = animatedFlag === "a";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue