Description • Structure • How does it work • License • Setup
This project is a multi-agent discord bot that simulates a software development team. The bot has four agents: frontend, backend, devops, and scrum master. Each agent has its own set of instructions and can communicate with other agents to complete tasks. Throughout this project, users can interact with the bot to assign tasks to agents, check the status of tasks, and view the instructions for each agent with faster software development.
├── agents/
│ ├── __init__.py # Initialize agents module
│ ├── frontend_agent.py # Frontend agent logic
│ ├── backend_agent.py # Backend agent logic
│ ├── devops_agent.py # DevOps agent logic
│ ├── scrum_master_agent.py # Scrum master logic
│
├── instructions/
│ ├── frontend.txt
│ ├── backend.txt
│ ├── devops.txt
│ ├── scrum-master.txt
│
├── app/
│ ├── __init__.py # Initialize Flask app
│ ├── routes.py # Flask routes for inter-agent communication
│
├── bot/
│ ├── __init__.py # Initialize Discord bot
│ ├── commands.py # Define Discord bot commands
│
├── tests/
│ ├── test_agents.py # Unit tests for agent logic
│ ├── test_integration.py # Integration tests
│
├── requirements.txt # Python dependencies
├── serverless.yml # Serverless framework config (for AWS Lambda)
├── .env # Environment variables (e.g., Discord token) [change .env.example to .env]
├── main.py # Entry point for running locally
├── README.md # Project documentation
├── requirements.txt # Python dependencies
├── .gitignore # Files to ignore in git
└── LICENSE # Project license[need to work on more]
prototype
AI Routing
This project is under MIT Licnese. You are welcome to contribute to this project.
This project requires virtual environment to manage dependencies. This project has built with Python 3.11.
# create virtual environment
python3 -m venv venv
# activate virtual environment using shell script
source activate_venv.sh
# install all dependencies
pip install -r requirements.txtA GitHub Actions workflow automatically deploys the DiscordBotLambdaStack when changes are pushed to the main branch. The workflow is defined in .github/workflows/deploy-lambda.yml and performs the following steps:
- Checks out the repository and sets up Node.js.
- Installs Node dependencies with
npm ci. - Configures AWS credentials using
aws-actions/configure-aws-credentials@v4. - Runs
npx cdk deploy --require-approval neverto deploy the stack.
Create these repository secrets so the workflow can authenticate with AWS:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGION
The Lambda code relies on environment variables stored in .env. Refer to .env.example for the variables that must be provided.

