Skip to main content

xyberos-discord

Discord bot API plugin — RFC-0019, M7 (community wave). Send messages and inspect channels from Xyberos agents via the Discord bot API (v10). Stdlib-only with an injectable transport for tests.

Install

pip install -e ./discord

Usage

from xyberos import create_app
from xyberos_discord import DiscordPlugin

app = create_app()
app.load_plugin(DiscordPlugin())          # token from DISCORD_TOKEN

app.tools.execute("discord_send_message", None, channel_id="111", content="hello")
app.tools.execute("discord_get_channel", None, channel_id="111")

Tools

Tool Notes
discord_send_message(channel_id, content) post a message
discord_get_channel(channel_id) channel metadata

Requires DISCORD_TOKEN (a bot token; auth sent as Authorization: Bot ...).

Tests

pip install pytest
pytest tests/

Canned responses via an injectable transport — no network.

Ship location

Plugin (xyberos.plugins entry point) — community wave (M7).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xyberos_discord-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

xyberos_discord-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file xyberos_discord-0.1.0.tar.gz.

File metadata

  • Download URL: xyberos_discord-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for xyberos_discord-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3e1cfe53f70cff80a3a24dc2192edf7c1402f967e054365056015981bb7e79d
MD5 7c542f8247d14cbb4f622dc29700b220
BLAKE2b-256 0c8ed839b3b178146a93d6b20881726393f3fd7ecc5fe6c8f9dc496488e3be27

See more details on using hashes here.

File details

Details for the file xyberos_discord-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xyberos_discord-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e320c09a3dce6b6d553b9cd333a8e08576277537d520d34e0fecf851389183
MD5 bb9022b07317bb39db28834faca9b17b
BLAKE2b-256 a2e7883d34377e4a6338c5f666296adcf747dfbc58c0416f2dc6c040f2edc767

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page