Added support for British flags to flag, updated region-flags repo URL
This commit is contained in:
parent
8942d8a409
commit
6689e7d709
2 changed files with 4 additions and 1 deletions
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue