Party mode plugin for Takopi - multi-user private topics
Project description
takopi-party
Party mode plugin for Takopi - enables multiple users to have private conversation topics with Takopi in a shared group chat.
Features
- Each user gets their own dedicated forum topic
- Private workspaces with git repository for each user
- Guest access control - allow specific users to interact in your topic
- Message filtering - only authorized users can trigger bot responses
Installation
uv pip install takopi-party
Requirements
- Python 3.14+
- Takopi 0.17.0+
- A Telegram group with forum topics enabled
- Bot must have permission to manage topics
Commands
| Command | Description |
|---|---|
/party register [name] |
Register and get your own topic with optional custom name |
/party allow @username |
Allow another user to interact in your topic |
/party revoke @username |
Remove a user's access to your topic |
/party leave |
Unregister and archive your workspace |
/party list |
Show all registered party members |
/party help |
Show help message |
How It Works
- User runs
/party registerin the General topic - Bot creates a new forum topic for the user
- Bot creates an isolated workspace folder with a git repo
- Only the topic owner (and allowed guests) can interact with Takopi in that topic
- Messages in the General topic are ignored by Takopi (used as a lobby)
Configuration
The plugin expects these values in ctx.plugin_config:
workspace_base: Path string for workspace root (default:/root/dev/party)bot: BotClient instance for topic creationraw_message: The raw Telegram message dict for sender extraction
Integration Notes
This plugin provides the command backend. Full party mode functionality requires integration with takopi core to:
- Load
PartyStateStorein the main loop - Filter messages from unauthorized users in party topics
- Override context resolution to use party workspace paths
License
MIT
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 takopi_party-0.1.0.tar.gz.
File metadata
- Download URL: takopi_party-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
385a88720608b879d0950f2e4e71d1158fb86d1bc6841850f8d10e65f6a8fff8
|
|
| MD5 |
48145a47b72008c1bbd160fb14de5d75
|
|
| BLAKE2b-256 |
5ea774e888afc8c7fff3b47e501c2c1ba41ff44b1e66a3ed4c997f72fd05b5a0
|
Provenance
The following attestation bundles were made for takopi_party-0.1.0.tar.gz:
Publisher:
release.yml on l3wi/takopi-party
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takopi_party-0.1.0.tar.gz -
Subject digest:
385a88720608b879d0950f2e4e71d1158fb86d1bc6841850f8d10e65f6a8fff8 - Sigstore transparency entry: 814875284
- Sigstore integration time:
-
Permalink:
l3wi/takopi-party@ff238e08122df983521d6caf544d81171fdb7155 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/l3wi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ff238e08122df983521d6caf544d81171fdb7155 -
Trigger Event:
release
-
Statement type:
File details
Details for the file takopi_party-0.1.0-py3-none-any.whl.
File metadata
- Download URL: takopi_party-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 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 |
f85870f23f090a3c8fd691a398818810481960b6303a4d13ee2f0667710bb265
|
|
| MD5 |
9a05b147f5eb29990ea01af22d5f7038
|
|
| BLAKE2b-256 |
28a06d270025f2533e4bd837ff3c7ece457523072b5abde1c9864618b28b8fc7
|
Provenance
The following attestation bundles were made for takopi_party-0.1.0-py3-none-any.whl:
Publisher:
release.yml on l3wi/takopi-party
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
takopi_party-0.1.0-py3-none-any.whl -
Subject digest:
f85870f23f090a3c8fd691a398818810481960b6303a4d13ee2f0667710bb265 - Sigstore transparency entry: 814875299
- Sigstore integration time:
-
Permalink:
l3wi/takopi-party@ff238e08122df983521d6caf544d81171fdb7155 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/l3wi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ff238e08122df983521d6caf544d81171fdb7155 -
Trigger Event:
release
-
Statement type: