Do the built-in emoji filtering on startup to eliminate files

This commit is contained in:
Midgard 2024-11-23 01:09:25 +01:00
parent bff8b3bd1e
commit de0323f563
Signed by: midgard
GPG key ID: 511C112F1331BBB4
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,2 +1 @@
builtin_emoji.txt
emoji.txt

5
bot.sh
View file

@ -2,7 +2,10 @@
cd "$(dirname "$0")"
cat builtin_emoji.txt <(mmcli listcustomemoji | jq -r '.name') > emoji.txt
cat \
<(jq -r 'map(.aliases[0]) | .[]' < builtin_emoji.json | grep -v '_skin_tone') \
<(mmcli listcustomemoji | jq -r '.name') \
> emoji.txt
mmcli tail -n0 -f "$1" |
jq --unbuffered -r '.id' |

View file

@ -1,3 +0,0 @@
#!/bin/sh
jq -r 'map(.aliases[0]) | .[]' < builtin_emoji.json | grep -v '_skin_tone' > builtin_emoji.txt