This commit is contained in:
Essem 2022-07-07 12:54:02 -05:00
parent ab9ac3b3bf
commit 91ad4a01cc
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class FlagCommand extends ImageCommand {
async criteria() {
const text = this.options.text ?? this.args[0];
if (!text.match(emojiRegex)) return false;
if (!text.match(emojiRegex())) return false;
const flag = emoji.unemojify(text).replaceAll(":", "").replace("flag-", "");
let path = `assets/images/region-flags/png/${flag.toUpperCase()}.png`;
if (flag === "pirate_flag") path = "assets/images/pirateflag.png";