Requirements
- ShadowBot - Required to generate link codes for players
- MySQL Database - Shared database with ShadowBot
Features
- Discord to In-Game Linking - Links player's Discord account to their in-game EOS ID
- Secure Code System - Uses randomly generated XXXX-XXXX format codes
- ShadowBot Integration - Bot generates link codes, plugin verifies them
How It Works
- Player requests a link code from ShadowBot in Discord
- ShadowBot generates a random code (format: XXXX-XXXX)
- Player joins the game and uses the chat command with their code
- Plugin verifies the code and links their Discord to their EOS ID
Command
| Command | Description ||---------|-------------|
|
/ShadowLink XXXX-XXXX | Link your Discord account using the code from ShadowBot |
Configuration
Code:
{
"MySql": {
"host": "", // MySQL server hostname or IP
"port": 3306, // MySQL port (default: 3306)
"username": "", // MySQL username
"password": "", // MySQL password
"database": "sh_dc_assistant" // Database name (must match ShadowBot)
}
}
Notes
- The database must be the same one used by ShadowBot
- Link codes expire after use or timeout
- Players can only have one Discord account linked at a time