Skip to content

Commit

Permalink
feat: allow specifying an EMOJI_GUILD if necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Mar 25, 2024
1 parent f7e5288 commit 063a707
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ USER ooye
ENV DISCORD_TOKEN="notarealdiscordtoken"
ENV SERVER_NAME="notmyrealserver.com"
ENV SERVER_ORIGIN="https://matrix.notmyrealserver.com"
# Discord Guild ID to upload emojis to, if necessary.
ENV EMOJI_GUILD=""
ENV ADMIN_INVITE=""
ENV CONTENT_LENGTH_WORKAROUND="false"
ENV NAMESPACE_PREFIX="_ooye_"
Expand Down
8 changes: 7 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ cat registration.yaml
echo ""

echo "Setting up / seeding database if necessary"
node scripts/seed.js

emoji_arg=""
if [ -n "${EMOJI_GUILD}" ]; then
emoji_arg="--emoji-guild=${EMOJI_GUILD}"
fi

node scripts/seed.js $emoji_arg

echo "Starting server"
exec node start.js

0 comments on commit 063a707

Please sign in to comment.