Claude Discord Bot

A powerful Discord bot powered by Anthropic's Claude 3.5 Sonnet, supporting conversational AI and scheduled tasks.

🚀 Setup Instructions

  1. Configure API Keys

    • Open the .env file and replace YOUR_DISCORD_BOT_TOKEN with your actual Discord Bot Token.
    • Replace YOUR_ANTHROPIC_API_KEY with your actual Anthropic API Key.
  2. Run the Bot

    • In your terminal, run: node index.js
    • You should see "Bot online" in the terminal.
  3. Invite the Bot

    • Ensure the bot has Guilds, GuildMessages, and MessageContent intents enabled in the Discord Developer Portal.
    • Mention the bot in any channel it has access to!

📦 Features

  • Claude 3.5 Sonnet: Uses the latest Claude model for high-quality responses.
  • Message Content Support: Responds when mentioned.
  • Auto-Typing: Shows the "typing..." indicator while Claude is thinking.
  • Long Message Support: Automatically splits responses longer than 2000 characters.
  • Scheduled Tasks: Includes node-cron for periodic updates.

🛠 Tech Stack

Built With

Share this project:

Updates