From 3adb69692263d09e1ae3cccf40989eb89529f941 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 18 Jun 2024 15:17:01 +0900 Subject: [PATCH] NETPLAY: moved flags to an external script --- functions/flags.sh | 252 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 functions/flags.sh diff --git a/functions/flags.sh b/functions/flags.sh new file mode 100644 index 00000000..f9e95276 --- /dev/null +++ b/functions/flags.sh @@ -0,0 +1,252 @@ +#!/bin/bash + +declare -A country_flags=( + ["af"]="🇦🇫" + ["ax"]="🇦🇽" + ["al"]="🇦🇱" + ["dz"]="🇩🇿" + ["as"]="🇦🇸" + ["ad"]="🇦🇩" + ["ao"]="🇦🇴" + ["ai"]="🇦🇮" + ["aq"]="🇦🇶" + ["ag"]="🇦🇬" + ["ar"]="🇦🇷" + ["am"]="🇦🇲" + ["aw"]="🇦🇼" + ["au"]="🇦🇺" + ["at"]="🇦🇹" + ["az"]="🇦🇿" + ["bs"]="🇧🇸" + ["bh"]="🇧🇭" + ["bd"]="🇧🇩" + ["bb"]="🇧🇧" + ["by"]="🇧🇾" + ["be"]="🇧🇪" + ["bz"]="🇧🇿" + ["bj"]="🇧🇯" + ["bm"]="🇧🇲" + ["bt"]="🇧🇹" + ["bo"]="🇧🇴" + ["bq"]="🇧🇶" + ["ba"]="🇧🇦" + ["bw"]="🇧🇼" + ["bv"]="🇧🇻" + ["br"]="🇧🇷" + ["io"]="🇮🇴" + ["bn"]="🇧🇳" + ["bg"]="🇧🇬" + ["bf"]="🇧🇫" + ["bi"]="🇧🇮" + ["kh"]="🇰🇭" + ["cm"]="🇨🇲" + ["ca"]="🇨🇦" + ["cv"]="🇨🇻" + ["ky"]="🇰🇾" + ["cf"]="🇨🇫" + ["td"]="🇹🇩" + ["cl"]="🇨🇱" + ["cn"]="🇨🇳" + ["cx"]="🇨🇽" + ["cc"]="🇨🇨" + ["co"]="🇨🇴" + ["km"]="🇰🇲" + ["cd"]="🇨🇩" + ["cg"]="🇨🇬" + ["ck"]="🇨🇰" + ["cr"]="🇨🇷" + ["ci"]="🇨🇮" + ["hr"]="🇭🇷" + ["cu"]="🇨🇺" + ["cw"]="🇨🇼" + ["cy"]="🇨🇾" + ["cz"]="🇨🇿" + ["dk"]="🇩🇰" + ["dj"]="🇩🇯" + ["dm"]="🇩🇲" + ["do"]="🇩🇴" + ["ec"]="🇪🇨" + ["eg"]="🇪🇬" + ["sv"]="🇸🇻" + ["gq"]="🇬🇶" + ["er"]="🇪🇷" + ["ee"]="🇪🇪" + ["et"]="🇪🇹" + ["fk"]="🇫🇰" + ["fo"]="🇫🇴" + ["fj"]="🇫🇯" + ["fi"]="🇫🇮" + ["fr"]="🇫🇷" + ["gf"]="🇬🇫" + ["pf"]="🇵🇫" + ["tf"]="🇹🇫" + ["ga"]="🇬🇦" + ["gm"]="🇬🇲" + ["ge"]="🇬🇪" + ["de"]="🇩🇪" + ["gh"]="🇬🇭" + ["gi"]="🇬🇮" + ["gr"]="🇬🇷" + ["gl"]="🇬🇱" + ["gd"]="🇬🇩" + ["gp"]="🇬🇵" + ["gu"]="🇬🇺" + ["gt"]="🇬🇹" + ["gg"]="🇬🇬" + ["gn"]="🇬🇳" + ["gw"]="🇬🇼" + ["gy"]="🇬🇾" + ["ht"]="🇭🇹" + ["hm"]="🇭🇲" + ["va"]="🇻🇦" + ["hn"]="🇭🇳" + ["hk"]="🇭🇰" + ["hu"]="🇭🇺" + ["is"]="🇮🇸" + ["in"]="🇮🇳" + ["id"]="🇮🇩" + ["ir"]="🇮🇷" + ["iq"]="🇮🇶" + ["ie"]="🇮🇪" + ["im"]="🇮🇲" + ["il"]="🇮🇱" + ["it"]="🇮🇹" + ["jm"]="🇯🇲" + ["jp"]="🇯🇵" + ["je"]="🇯🇪" + ["jo"]="🇯🇴" + ["kz"]="🇰🇿" + ["ke"]="🇰🇪" + ["ki"]="🇰🇮" + ["kp"]="🇰🇵" + ["kr"]="🇰🇷" + ["kw"]="🇰🇼" + ["kg"]="🇰🇬" + ["la"]="🇱🇦" + ["lv"]="🇱🇻" + ["lb"]="🇱🇧" + ["ls"]="🇱🇸" + ["lr"]="🇱🇷" + ["ly"]="🇱🇾" + ["li"]="🇱🇮" + ["lt"]="🇱🇹" + ["lu"]="🇱🇺" + ["mo"]="🇲🇴" + ["mg"]="🇲🇬" + ["mw"]="🇲🇼" + ["my"]="🇲🇾" + ["mv"]="🇲🇻" + ["ml"]="🇲🇱" + ["mt"]="🇲🇹" + ["mh"]="🇲🇭" + ["mq"]="🇲🇶" + ["mr"]="🇲🇷" + ["mu"]="🇲🇺" + ["yt"]="🇾🇹" + ["mx"]="🇲🇽" + ["fm"]="🇫🇲" + ["md"]="🇲🇩" + ["mc"]="🇲🇨" + ["mn"]="🇲🇳" + ["me"]="🇲🇪" + ["ms"]="🇲🇸" + ["ma"]="🇲🇦" + ["mz"]="🇲🇿" + ["mm"]="🇲🇲" + ["na"]="🇳🇦" + ["nr"]="🇳🇷" + ["np"]="🇳🇵" + ["nl"]="🇳🇱" + ["nc"]="🇳🇨" + ["nz"]="🇳🇿" + ["ni"]="🇳🇮" + ["ne"]="🇳🇪" + ["ng"]="🇳🇬" + ["nu"]="🇳🇺" + ["nf"]="🇳🇫" + ["mk"]="🇲🇰" + ["mp"]="🇲🇵" + ["no"]="🇳🇴" + ["om"]="🇴🇲" + ["pk"]="🇵🇰" + ["pw"]="🇵🇼" + ["ps"]="🇵🇸" + ["pa"]="🇵🇦" + ["pg"]="🇵🇬" + ["py"]="🇵🇾" + ["pe"]="🇵🇪" + ["ph"]="🇵🇭" + ["pn"]="🇵🇳" + ["pl"]="🇵🇱" + ["pt"]="🇵🇹" + ["pr"]="🇵🇷" + ["qa"]="🇶🇦" + ["re"]="🇷🇪" + ["ro"]="🇷🇴" + ["ru"]="🇷🇺" + ["rw"]="🇷🇼" + ["bl"]="🇧🇱" + ["sh"]="🇸🇭" + ["kn"]="🇰🇳" + ["lc"]="🇱🇨" + ["mf"]="🇲🇫" + ["pm"]="🇵🇲" + ["vc"]="🇻🇨" + ["ws"]="🇼🇸" + ["sm"]="🇸🇲" + ["st"]="🇸🇹" + ["sa"]="🇸🇦" + ["sn"]="🇸🇳" + ["rs"]="🇷🇸" + ["sc"]="🇸🇨" + ["sl"]="🇸🇱" + ["sg"]="🇸🇬" + ["sx"]="🇸🇽" + ["sk"]="🇸🇰" + ["si"]="🇸🇮" + ["sb"]="🇸🇧" + ["so"]="🇸🇴" + ["za"]="🇿🇦" + ["gs"]="🇬🇸" + ["ss"]="🇸🇸" + ["es"]="🇪🇸" + ["lk"]="🇱🇰" + ["sd"]="🇸🇩" + ["sr"]="🇸🇷" + ["sj"]="🇸🇯" + ["se"]="🇸🇪" + ["ch"]="🇨🇭" + ["sy"]="🇸🇾" + ["tw"]="🇹🇼" + ["tj"]="🇹🇯" + ["tz"]="🇹🇿" + ["th"]="🇹🇭" + ["tl"]="🇹🇱" + ["tg"]="🇹🇬" + ["tk"]="🇹🇰" + ["to"]="🇹🇴" + ["tt"]="🇹🇹" + ["tn"]="🇹🇳" + ["tr"]="🇹🇷" + ["tm"]="🇹🇲" + ["tc"]="🇹🇨" + ["tv"]="🇹🇻" + ["ug"]="🇺🇬" + ["ua"]="🇺🇦" + ["ae"]="🇦🇪" + ["gb"]="🇬🇧" + ["um"]="🇺🇲" + ["us"]="🇺🇸" + ["uy"]="🇺🇾" + ["uz"]="🇺🇿" + ["vu"]="🇻🇺" + ["ve"]="🇻🇪" + ["vn"]="🇻🇳" + ["vg"]="🇻🇬" + ["vi"]="🇻🇮" + ["wf"]="🇼🇫" + ["eh"]="🇪🇭" + ["ye"]="🇾🇪" + ["zm"]="🇿🇲" + ["zw"]="🇿🇼" +)