Skip to main content

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

  1. Create a Discord application at https://discord.com/developers/applications
  2. Create a bot and copy the token
  3. Enable "Message Content Intent" under Privileged Gateway Intents
  4. Run takopi setup and follow the prompts
  5. 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

takopi_discord-0.1.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

takopi_discord-0.1.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for takopi_discord-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b86f11ea34c3e700d45b81e8aab10f95297300b9dc91f512da30db1ce4f92e46
MD5 23825c7cef713627c3d79fe66f28cb8f
BLAKE2b-256 a883fbe4e34215966311e35a48826160d41dc0296bedb5cdba6aff66f1434c6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_discord-0.1.0.tar.gz:

Publisher: release.yml on asianviking/takopi-discord

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for takopi_discord-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87c098072791f2794c92449426e442f2f204431e8edfbb707d44972924e06478
MD5 e179c74b4dfe35135ebfc09afe1b7e9b
BLAKE2b-256 6a72760d3eff76d9f84451b7653bef2d7455648fbaf88dc6aa5c2ad6a946b9ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_discord-0.1.0-py3-none-any.whl:

Publisher: release.yml on asianviking/takopi-discord

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page