Advanced Discord server status plugin for SquadJS.
!status- shows the current server status!status subscribe- subscribes to automatic server status updates!status unsubscribe- unsubscribes from automatic updates
Update discord.js in SquadJS:
npm install discord.jsAdding server.info:
In squad_server/index.js, after creating the info object, we also assign it to the server instance.
Before:
// ...
const info = { ... };
this.serverName = info.serverName;
// ...After:
// ...
const info = { ... };
this.serverName = info.serverName;
this.info = info;
// ...This makes the entire info object accessible via server.info.
Add Emojis to Your Discord Server:
- Download the icons from the /icons folder.
- Upload them to your Discord server via Server Settings > Emojis.
Configure the Plugin:
- Send any uploaded emoji to a channel, prefixing it with a backslash (\) (e.g., \:my_emoji:).
- Copy the output (e.g., <:my_emoji:1234567890>) and paste it into the relevant field in the configuration.
You need to obtain a Steam API key—the process is quite simple. With a quick search, you can get your Steam API key from the website below. Do not share your key with anyone.
https://steamcommunity.com/dev?l=english
{
"plugin": "DiscordAdvancedStatus",
"enabled": true,
"discordClient": "discord",
"messageStore": "sqlite",
"command": "!status",
"disableSubscriptions": false,
"updateInterval": 10000,
"setBotStatus": true,
"apiKey": "your_steam_api_key",
"icons": {
"status": "emoji",
"players": "emoji",
"map": "emoji",
"time": "emoji",
"admins": "emoji"
}
}Based on: discord-server-status
For support, DM me on Discord or create a ticket in discord.gg/luppux
