Discord transport plugin for takopi
Project description
takopi-discord
Discord transport plugin for takopi - "he just wants to help-pi... on Discord!"
Concept
Maps Discord's structure to takopi's project/branch/session model:
| Discord | Takopi | Purpose |
|---|---|---|
| Category | Project | Repository context |
| Channel | Branch | Feature branch / worktree |
| Thread | Session | Conversation with agent |
Structure Example
FURTHERMORE (category)
├── #main
├── #issue-764-remove-ybgt
├── #issue-840-vault-search
└── Voice: furthermore-vc
TAKOPI (category)
├── #main
├── #feat
└── Voice: takopi-vc
Installation
# Install takopi-discord
pip install takopi-discord
# Or with uv
uv pip install takopi-discord
# Verify the transport is loaded
takopi plugins --load
Configuration
# takopi.toml
transport = "discord"
[transports.discord]
bot_token = "..."
guild_id = 123456789 # optional, for single-guild mode
message_overflow = "trim" # or "split"
session_mode = "stateless" # or "chat"
Setup
- Create a Discord application at https://discord.com/developers/applications
- Create a bot and copy the token
- Enable "Message Content Intent" under Privileged Gateway Intents
- Run
takopi setupand follow the prompts - Invite the bot to your server using the generated URL
Slash Commands
/status- Show current channel context and status/bind <project>- Bind channel to a project/unbind- Remove project binding/cancel- Cancel running task
Discord Bot Permissions Required
- Read Messages / View Channels
- Send Messages
- Create Public Threads
- Send Messages in Threads
- Manage Threads
- Read Message History
- Add Reactions
- Attach Files
- Use Slash Commands
Development
# Clone the repo
git clone https://github.com/asianviking/takopi-discord.git
cd takopi-discord
# Install in development mode
uv pip install -e .
# Run tests
pytest
License
MIT
Project details
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 takopi_discord-0.1.0.tar.gz.
File metadata
- Download URL: takopi_discord-0.1.0.tar.gz
- Upload date:
- Size: 65.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86f11ea34c3e700d45b81e8aab10f95297300b9dc91f512da30db1ce4f92e46
|
|
| MD5 |
23825c7cef713627c3d79fe66f28cb8f
|
|
| BLAKE2b-256 |
a883fbe4e34215966311e35a48826160d41dc0296bedb5cdba6aff66f1434c6b
|
Provenance
The following attestation bundles were made for takopi_discord-0.1.0.tar.gz:
Publisher:
release.yml on asianviking/takopi-discord
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takopi_discord-0.1.0.tar.gz -
Subject digest:
b86f11ea34c3e700d45b81e8aab10f95297300b9dc91f512da30db1ce4f92e46 - Sigstore transparency entry: 820835289
- Sigstore integration time:
-
Permalink:
asianviking/takopi-discord@70e68abfa0d4a91746ef1ff43d6ebc5308e32691 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asianviking
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70e68abfa0d4a91746ef1ff43d6ebc5308e32691 -
Trigger Event:
push
-
Statement type:
File details
Details for the file takopi_discord-0.1.0-py3-none-any.whl.
File metadata
- Download URL: takopi_discord-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87c098072791f2794c92449426e442f2f204431e8edfbb707d44972924e06478
|
|
| MD5 |
e179c74b4dfe35135ebfc09afe1b7e9b
|
|
| BLAKE2b-256 |
6a72760d3eff76d9f84451b7653bef2d7455648fbaf88dc6aa5c2ad6a946b9ab
|
Provenance
The following attestation bundles were made for takopi_discord-0.1.0-py3-none-any.whl:
Publisher:
release.yml on asianviking/takopi-discord
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takopi_discord-0.1.0-py3-none-any.whl -
Subject digest:
87c098072791f2794c92449426e442f2f204431e8edfbb707d44972924e06478 - Sigstore transparency entry: 820835292
- Sigstore integration time:
-
Permalink:
asianviking/takopi-discord@70e68abfa0d4a91746ef1ff43d6ebc5308e32691 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asianviking
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@70e68abfa0d4a91746ef1ff43d6ebc5308e32691 -
Trigger Event:
push
-
Statement type: