Memeputer

Discord Integration

Deploy your Memeputer agent as a Discord bot to interact with users in servers and direct messages.

What Can Your Agent Do on Discord?

Your Discord-integrated agent can:

  • Respond to @mentions: Chat with users when they mention your bot in a server
  • Direct messages: Have private conversations with users in DMs
  • Execute commands via chat: Trigger your agent's commands by mentioning them in messages
  • Remember conversations: Your agent maintains conversation history per channel

Setting Up Discord Integration

Create a Discord Bot

  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
  3. Go to Bot in the left sidebar
  4. Click Reset Token and copy the token - save this securely!
  5. Enable these Privileged Gateway Intents:
    • MESSAGE CONTENT INTENT ✅ (required for reading message content)
    • SERVER MEMBERS INTENT (optional, for member-related features)

Generate Bot Invite Link

  1. Go to OAuth2 → URL Generator in the left sidebar
  2. Under Scopes, select:
    • bot
  3. Under Bot Permissions, select:
    • Send Messages
    • Read Message History
  4. Copy the generated URL at the bottom
  5. Open the URL in your browser to add the bot to your server

Connect to Memeputer

  1. Go to your agent's dashboard on Memeputer
  2. Click Integrations in the sidebar
  3. Click Discord to open the Discord integration page
  4. Paste your Bot Token in the field
  5. (Optional) Enter a Guild ID to restrict your bot to a specific server
  6. Click Save
  7. Click Enable to activate the integration

Your bot will now respond to @mentions and DMs!

Finding Your Guild ID

If you want to restrict your bot to only respond in a specific server:

  1. Open Discord and go to User Settings (gear icon)
  2. Go to Advanced and enable Developer Mode
  3. Right-click on your server icon in the server list
  4. Click Copy Server ID
  5. Paste this ID in the Guild ID field on Memeputer

Using Agent Commands in Discord

Your agent's commands work in Discord via @mentions. Simply mention your bot and include the command:

@YourBot /weather New York
@YourBot /imagine sunset over mountains
@YourBot /help

In DMs, you can chat naturally without mentioning:

What's the weather in New York?
Can you help me with something?

Your agent will use its configured commands and knowledge to respond appropriately.

Best Practices

Bot Setup

  • Set a clear bot name and profile picture in the Discord Developer Portal
  • Write a helpful bot description
  • Configure a specific Guild ID during testing to avoid unexpected interactions

User Experience

  • Create a help command on your agent that lists available commands
  • Keep responses concise and well-formatted
  • Use Discord markdown for better readability (bold, code blocks, etc.)

Security

  • Never share your bot token publicly
  • Use Guild ID restriction to limit where your bot responds
  • Configure forbidden words in your agent's personality settings

Troubleshooting

Bot Not Responding

  • Verify the integration is enabled on Memeputer
  • Check that the bot token is correct
  • Ensure MESSAGE CONTENT INTENT is enabled in Discord Developer Portal
  • If using Guild ID, verify you're testing in that specific server
  • Make sure you're @mentioning the bot or in a DM

Commands Not Working

  • Make sure commands are defined on your agent
  • Test in a DM first to rule out server permission issues
  • Verify the bot has permission to send messages in the channel

Bot Can't See Messages

  • Go to Discord Developer Portal → Bot → Privileged Gateway Intents
  • Enable MESSAGE CONTENT INTENT
  • Save changes and wait a few minutes for it to take effect

Permission Errors

  • Ensure the bot has the required permissions in the server
  • Check that the bot's role is high enough in the role hierarchy
  • Re-invite the bot using the OAuth2 URL with correct permissions

Next Steps

Want to deploy your agent to more platforms? Check out Telegram Integration or X (Twitter) Integration. To monetize your agent via API, learn about X402.