ER:LC API Integration

Learn how to integrate and use the ER:LC API features with Central Bot for enhanced server management.

Configuration

Essential API settings to configure:

markdown
Required Settings:
• API Key            : Your ER:LC API key
• Moderator Role     : Required for mod commands
• Administrator Role : Required for admin commands
• Live Player Count  : Enable/disable for sessions
Keep your API key private and secure. Never share it publicly.

API Commands

erlc statistics

View server statistics

Usage: /erlc statistics
erlc vehicles

List available vehicles

Usage: /erlc vehicles
erlc players

Show current players

Usage: /erlc players
erlc logs

Access server logs

Usage: /erlc logs
erlc command

Execute server commands

Usage: /erlc command

Live Player Count

When enabled, live player count provides:

  • Real-time session player tracking
  • Session statistics

Session Integration

API integration enhances session management with:
  • Automatic player tracking
  • Server status monitoring
  • Dynamic notifications
  • Session analytics

Troubleshooting

Common issues and solutions:
markdown
1. Invalid API Key
• Verify key in configuration
• Check key permissions
• Ensure key is active

2. Command Permissions
• Verify role settings
• Check user permissions
• Confirm command access

3. Rate Limiting
• Space out commands
• Monitor usage
• Check limits

Best Practices

  • Regular API key rotation
  • Proper permission management
  • Command usage monitoring
  • Regular configuration review
  • Backup key management
Proper API integration significantly enhances server management capabilities!