From 373b9116ccbc7ea9454b9379ecbff1b183dd3cfe Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 31 Mar 2022 17:12:27 +0100 Subject: [PATCH] add --- reactions/generate.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 reactions/generate.sh diff --git a/reactions/generate.sh b/reactions/generate.sh new file mode 100755 index 0000000..3d51c31 --- /dev/null +++ b/reactions/generate.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# Run fetch-latest-format.sh for the most up-to-date emojibase format. Target is raw.json +reactions="$(yq . /dev/stdin < reactions.yaml)" +jq -n --argjson reactions "$reactions" \ + '[ + $reactions[] | { + label: ., + hexcode: "2721", + tags: [ . ], + emoji: ., + text: ., + type: 0, + order: 0, + group: 8, + subgroup: 93, + version: 0.7 + } +]' + +