Skip to content

Commit

Permalink
Update env file with new emotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbpratt authored Oct 15, 2019
1 parent 5162e52 commit 47ae7a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions emote-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
emotes=$(curl https://raw.githubusercontent.com/memelabs/chat-gui/master/assets/emotes.json | jq '.default | .[]')
list=""
for e in $emotes; do
list+=$(echo $e | sed -e 's/^"//' -e 's/"$//'),
done

sed -ie "s/^EMOTES=.*/EMOTES=$(echo $list | rev | cut -c 2- | rev)/" .env.example

1 comment on commit 47ae7a7

@xDashh
Copy link
Member

@xDashh xDashh commented on 47ae7a7 Oct 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbpratt78 Assuming this is run on the production machine, consider changing this script to use cat {some_path}/chat-gui/assets/emotes.json on the local machine instead of curling from github.

Please sign in to comment.