Do the built-in emoji filtering on startup to eliminate files
This commit is contained in:
parent
bff8b3bd1e
commit
de0323f563
3 changed files with 4 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
builtin_emoji.txt
|
||||
emoji.txt
|
||||
|
|
5
bot.sh
5
bot.sh
|
@ -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' |
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
jq -r 'map(.aliases[0]) | .[]' < builtin_emoji.json | grep -v '_skin_tone' > builtin_emoji.txt
|
Loading…
Reference in a new issue