-
Discord Bot Setup
- Create Discord Bot
Needs the following bot permissions:
Read Messages/View Channels
,Send Messages
,Embed Links
,Attach Files
,Use External Emojis
[optional],Add Reactions
[optional] - Invite bot to server (make sure the bot has proper permissions in your desired channel)
- Create a
.env
file and put it in the root directory. It should be in the following format:EAS_SECRET_WEBHOOK_KEY = DISCORD_BOT_TOKEN = DISCORD_CHANNEL_ID =
- Create Discord Bot
-
EAS Build Webhooks setup
- Set up a webhook with
eas webhook:create
. e.g.<this_app_url>/webhook
- Set up a webhook with
NAME | Required | Description | Example/Document |
---|---|---|---|
EAS_SECRET_WEBHOOK_KEY | true | EAS | see SECRET_WEBHOOK_KEY |
DISCORD_BOT_TOKEN | true | The OAuth token. | NzkyNzE1NDU0MTk2MDg4ODQy.X-hvzA.Ovy4MCQywSkoMRRclStW4xAYK7I |
DISCORD_CHANNEL_ID | true | Discord channel | 8573456205924986 |
EXPO_DEFAULT_TEAM_NAME | false | For team accounts, it will be undefined , so you can set a default value |
yourteam |