Browse Source

move emoji.json to main repo

tab
feature/alerts-refactor
Daniel Gibbs 4 years ago
parent
commit
64651fb293
No known key found for this signature in database GPG Key ID: 2EBB36015C6D78E2
  1. 4
      lgsm/functions/info_distro.sh

4
lgsm/functions/info_distro.sh

@ -258,11 +258,11 @@ if [ -z "${extip}" ]; then
country="$(echo "${ipapijson}" | jq -r .country)"
if [ ! -f "${datadir}/emoji.json" ];then
fn_fetch_file "https://raw.githubusercontent.com/GameServerManagers/unicode-emoji-json/main/data-by-emoji.json" "${datadir}" "emoji.json"
fn_fetch_file_github "lgsm/data" "emoji.json" "${datadir}"
fi
if [ -n "${country}" ]&&[ -f "${datadir}/emoji.json" ];then
countryflag="$(jq -r --arg country "flag $country" 'to_entries[]| {"emoji": .key, "name": .value.name} | select(.name==$country)|.emoji' ${datadir}/emoji.json)"
countryflag="$(jq -r --arg country "flag $country" 'to_entries[]| {"emoji": .key, "name": .value.name} | select(.name==$country)|.emoji' ${datadir}/emoji.json)"
fi
exitcode=$?

Loading…
Cancel
Save