Apex Legends Server Status Discord Bot
Show the current status of the Apex Legends login/matchmaking servers!
Apex Legends Server Status
StryderDev/Atlas
Just deployed
Setup
- Go to the Discord Developer Portal and set up a new bot. Grab the token and add it to the "DISCORD_TOKEN" environment variable
- Go to the "Generate URL" section in the "OAuth2" category and generate the necessary permissions. You can set it to Administrator (not advised), or invite the bot with the following permissions:
- Read Messages/View Channel
- Send Messages
- Manage Channels (for the server status in the channel name)
- Use External Emojis
- Go to the Apex Legends API Website and generate an API key. Copy the key and add it to the "ALS_API" environment variable
- Go to your Discord server and create a new channel for the bot to use and store the message. Copy the Server ID and Channel ID into the "SERVER_ID" and "CHANNEL_ID" environment variables respectively.
- The "MESSAGE_ID" field should default to 0. We'll come back to that
- Make sure the "DEBUG" environment variable is set to false and the "ENABLED" environment variable is set to TRUE
- Deploy the bot and wait for it to come online. Once it's online, go into the channel you setup and run the "/template" command
- If the command was successful, you should get a template embed. Copy the ID of the message and insert it into the "MESSAGE_ID" environment variable and redeploy the bot
- ???
- Profit
Template Content
Apex Legends Server Status
StryderDev/AtlasALS_API
Apex Legends API key. Get the key from https://apexlegendsapi.com/
SERVER_ID
The server ID that the message will be posted in.
CHANNEL_ID
The channel ID that the message will be posted in.
DISCORD_TOKEN
Discord bot token. Get the token from https://discord.com/developers/applications