Python library for managing multi-agent teams on Discord
Project description
Discord Multi-Agent Kit ๐ค
A lightweight Python library for creating multi-agent systems that communicate through Discord webhooks. Perfect for building AI teams, automated workflows, and collaborative bot systems.
Created by Rika Company ๐
โจ Features
- Simple API - Create team members with just a few lines of code
- Discord Integration - Send messages via webhooks with custom avatars and names
- Team Management - Organize agents into teams with role-based channels
- No Dependencies - Only requires the
requestslibrary - Customizable - Easy to extend and adapt to your needs
- Cross-Talk - Agents can communicate with each other across channels
๐ฆ Installation
pip install requests
That's it! Just copy the library into your project.
๐ Quick Start
from rika_team import TeamMember, RikaTeam
# Create a team member
kai = TeamMember(
name="Kai",
role="Developer",
avatar="๐ป",
webhook_url="https://discord.com/api/webhooks/YOUR_WEBHOOK_URL"
)
# Send a message
kai.say("Hello! I'm Kai, the developer. Ready to code! ๐")
๐ API Reference
TeamMember
Represents an individual agent in the system.
TeamMember(name, role, avatar, webhook_url)
| Parameter | Type | Description |
|---|---|---|
name |
str | Display name of the agent |
role |
str | Role/title of the agent |
avatar |
str | Emoji or avatar URL |
webhook_url |
str | Discord webhook URL |
Methods
| Method | Description |
|---|---|
say(message) |
Send a message to the configured channel |
say_to(webhook_url, message) |
Send a message to a different channel |
announce(message) |
Send a formatted announcement |
RikaTeam
Manages a collection of team members.
RikaTeam()
Methods
| Method | Description |
|---|---|
add_member(member) |
Add a TeamMember to the team |
get_member(name) |
Get a member by name |
broadcast(message) |
Send message to all members' channels |
list_members() |
Return list of all member names |
โ๏ธ Configuration
Setting Up Discord Webhooks
- Open your Discord server
- Go to Server Settings โ Integrations โ Webhooks
- Click New Webhook
- Copy the webhook URL
Organizing Channels by Department
# Define webhooks for different departments
WEBHOOKS = {
"engineering": "https://discord.com/api/webhooks/...",
"operations": "https://discord.com/api/webhooks/...",
"quality": "https://discord.com/api/webhooks/...",
}
# Create department-specific agents
dev = TeamMember("Kai", "Developer", "๐ป", WEBHOOKS["engineering"])
ops = TeamMember("Hana", "DevOps", "๐", WEBHOOKS["operations"])
qa = TeamMember("Yuki", "QA Lead", "๐", WEBHOOKS["quality"])
๐ก Examples
Basic Team Setup
from rika_team import TeamMember, RikaTeam
# Initialize team
team = RikaTeam()
# Add members
team.add_member(TeamMember(
name="Rika",
role="CEO",
avatar="๐",
webhook_url="https://discord.com/api/webhooks/..."
))
team.add_member(TeamMember(
name="Mika",
role="CTO",
avatar="๐ง",
webhook_url="https://discord.com/api/webhooks/..."
))
# Get a member and send message
ceo = team.get_member("Rika")
ceo.say("Good morning team! Let's ship some features today! ๐")
Cross-Channel Communication
# Kai sends to his own channel
kai.say("Just finished the new feature!")
# Kai also notifies the QA channel
kai.say_to(
WEBHOOKS["quality"],
"Hey @Yuki, the feature is ready for testing! ๐งช"
)
Team Broadcast
# Send announcement to all channels
team.broadcast("๐ Version 2.0 has been released!")
Formatted Announcements
kai.announce("""
## ๐ข New API Endpoint Available
**Endpoint:** `/api/v2/users`
**Method:** GET, POST
**Auth:** Bearer token required
See docs for details!
""")
Automated Status Updates
import time
def daily_standup():
members = ["Rika", "Mika", "Kai", "Hana", "Yuki"]
for name in members:
member = team.get_member(name)
if member:
member.say(f"๐ Daily standup check-in from {name}")
time.sleep(1) # Respect rate limits
๐ Best Practices
- Rate Limiting - Discord has rate limits. Add delays between bulk messages.
- Secure Webhooks - Never commit webhook URLs to public repos. Use environment variables.
- Error Handling - Wrap API calls in try/except blocks.
import os
# Use environment variables for webhooks
webhook = os.getenv("DISCORD_WEBHOOK_ENG")
try:
kai.say("Deploying to production...")
except Exception as e:
print(f"Failed to send message: {e}")
๐ค Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
๐ License
MIT License
MIT License
Copyright (c) 2026 Rika Company
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
๐ Credits
Rika Company ๐
Built with โค๏ธ by the Rika Team:
- Rika - CEO ๐
- Sora - Project Manager ๐
- Mika - CTO ๐ง
- Kai - Developer ๐ป
- Hana - DevOps ๐
- Ryu - SysAdmin ๐ฅ๏ธ
- Yuki - QA Lead ๐
Made for humans and AI agents alike ๐คโจ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentcord-1.0.0.tar.gz.
File metadata
- Download URL: agentcord-1.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8da0b23768c26855aa153609cc619985b1ad9fb097df2f9d2563f1e1f58486
|
|
| MD5 |
b89f037579e99ee17561670f8b584479
|
|
| BLAKE2b-256 |
bc75f8fadda2d3da38ba616f7891d35548532a593c6d3186967ae96e01b51280
|
File details
Details for the file agentcord-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agentcord-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b9016d9eb2509ef60cb7ce6628252df10b51b2b12787ae3046a6d3bf6d7ce7
|
|
| MD5 |
625fc2d3c9ef34ac9ac8debf9ba32ecc
|
|
| BLAKE2b-256 |
03b686b458229056cbb46fa16a117b08509cffc4b43be3c26d02ee998217326a
|