Skip to content

infleet/discord-bot

 
 

Repository files navigation

Discord Bot

A Discord bot that integrates with Skald to answer questions and maintain conversation context in threads.

Setup

1. Create Discord Bot

  1. Go to Discord Developer Portal

  2. Create new application

  3. Go to "Bot" section, create bot (or reset token), copy token

  4. Enable "MESSAGE CONTENT INTENT" under Privileged Gateway Intents. Hit Save changes.

  5. Go to OAuth2 → URL Generator, select:

    • Scopes: bot, applications.commands
    • Permissions: Send Messages, Create Public Threads, Send Messages in Threads
  6. Use generated URL to invite bot to your server. Just copy the URL and open it in your browser.

2. Get Skald API Key

Generate an API key on platform.useskald.com. Make sure you are logged in the correct account and selected the correct project.

3. Configure Environment Variables

Create and fill the .env file based on .env.example:

cp .env.example .env

Edit .env and add your credentials:

  • DISCORD_TOKEN - Your Discord bot token
  • SKALD_API_KEY - Your Skald API key from platform.useskald.com

Running with Docker Compose

Build and run

docker-compose up -d

View logs

docker-compose logs -f

Stop

docker-compose down

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.5%
  • Dockerfile 1.5%