The public repository for Airweave's discord bot.
A modern, scalable Discord bot built with FastAPI, designed for seamless integration and high performance.
Airweave Discord Bot is a cutting-edge solution for integrating Discord interactions using FastAPI. It leverages the latest technologies to ensure scalability, maintainability, and adherence to best practices.
airweave-discord-bot/
├── app/
│ ├── api/ # FastAPI route handlers
│ │ └── interactions.py # Discord interactions endpoint
│ ├── core/ # Core configurations and utilities
│ │ ├── config.py # Pydantic settings management
│ │ └── verify_signature.py # Request signature verification
│ ├── services/ # Business logic and services
│ │ └── discord_service.py # Discord-related operations
│ ├── models/ # Pydantic models and database schemas
│ │ └── interaction.py # Interaction data models
│ └── main.py # Application entry point
├── tests/ # Test cases
│ ├── __init__.py
│ └── test_interactions.py
├── .env # Environment variables
├── .gitignore # Git ignore file
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Clone the repository:
git clone https://github.com/airweave-ai/airweave-discord-bot.git
cd airweave-discord-bot
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
- Install Dependencies
pip install -r requirements.txt
- Setup .env file
DISCORD_PUBLIC_KEY=your_discord_public_key
DISCORD_BOT_TOKEN=your_discord_bot_token