Added support for British flags to flag, updated region-flags repo URL

This commit is contained in:
Essem 2021-11-25 17:14:41 -06:00
parent 8942d8a409
commit 6689e7d709
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 4 additions and 1 deletions

2
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "assets/images/region-flags"] [submodule "assets/images/region-flags"]
path = assets/images/region-flags path = assets/images/region-flags
url = https://github.com/behdad/region-flags url = https://github.com/fonttools/region-flags

View file

@ -14,6 +14,9 @@ class FlagCommand extends ImageCommand {
if (flag === "rainbow-flag") path = "./assets/images/rainbowflag.png"; if (flag === "rainbow-flag") path = "./assets/images/rainbowflag.png";
if (flag === "checkered_flag") path = "./assets/images/checkeredflag.png"; if (flag === "checkered_flag") path = "./assets/images/checkeredflag.png";
if (flag === "transgender_flag") path = "./assets/images/transflag.png"; if (flag === "transgender_flag") path = "./assets/images/transflag.png";
if (flag === "🏴󠁧󠁢󠁳󠁣󠁴󠁿") path = "./assets/images/region-flags/png/GB-SCT.png";
if (flag === "🏴󠁧󠁢󠁷󠁬󠁳󠁿") path = "./assets/images/region-flags/png/GB-WLS.png";
if (flag === "🏴󠁧󠁢󠁥󠁮󠁧󠁿") path = "./assets/images/region-flags/png/GB-ENG.png";
try { try {
await fs.promises.access(path); await fs.promises.access(path);
this.flagPath = path; this.flagPath = path;