discord-doctor
Discord Doctor
Diagnose configuration and connectivity issues with Discord integration.
When to Use
- User says "Discord not working" or "diagnose Discord"
- User reports connection or authentication errors
- User says "check Discord setup" or "troubleshoot Discord"
- Before asking for help with Discord issues
- When sync or other Discord commands fail unexpectedly
How to Execute
python ${CLAUDE_PLUGIN_ROOT}/tools/discord_doctor.py
What It Checks
- Environment file -
.envexists in cwd - Discord token -
DISCORD_USER_TOKENis set - Token format - Token appears valid (length, no prefixes)
- Authentication - Token can connect to Discord API
- Config file -
config/agents.yamlexists and is valid YAML - Server configured - A default server is selected
- Data directory -
data/is writable
Output
Displays results with:
- ✓ for passed checks
- ✗ for failed checks
For each failure, provides a suggested fix that the user can run manually.
Important: This tool only diagnoses issues - it does not modify any files.
Example Output
discord-doctor results:
✓ Environment file (.env found)
✓ Discord token (***...abc123)
✓ Token format (Format looks valid)
✗ Authentication (Token expired)
✓ Config file (Valid YAML)
✓ Server configured (My Server (1234))
✓ Data directory (./data)
Some checks failed. Suggested fixes:
• Authentication:
Your token may be expired. Get a fresh token from Discord DevTools.
(Run these steps manually - doctor does not modify files)
Next Steps
After fixing issues:
- Run
discord-initto reconfigure if needed - Run
discord-syncto test connectivity
More from lycfyi/community-agent-plugin
telegram-sync
Sync Telegram messages to local storage. Use when user asks to sync, pull, fetch, or download Telegram messages.
26telegram-read
Read and search synced Telegram messages. Use when user asks about Telegram conversations, wants to see messages, or search for specific content.
13telegram-doctor
Diagnose Telegram configuration and connectivity issues. Use when user reports problems with Telegram sync, connection errors, or wants to troubleshoot.
11telegram-init
Initialize Telegram configuration. Use when user wants to set up, configure, or connect their Telegram account for the first time.
11telegram-send
Send messages to Telegram channels. Use when user wants to post, reply, or send messages to Telegram.
8telegram-list
List Telegram groups and channels. Use when user asks about available groups, channels, or wants to discover what's accessible.
7