Skip to main content

csp bot commands

Miscellaneous commands for csp-bot

Build Status codecov License PyPI

Overview

This package contains fun, testing, and utility commands for csp-bot.

Command Type Description
/slap fun Slap someone with a wet trout
/mets utility Get information about the NY Mets baseball team, including roster, players, and schedule information
/thanks fun Thank another user with a random object or cash
/_fun fun Randomly generated/selected quotes or trivia
/delaytest test Tester command for delayed/repeated commands

Any of these commands can be included in a csp-bot configuration following the documentation:

# @package _global_
defaults:
  - /gateway: slack
  - _self_

bot_name: CSP Bot
app_token: .slack_app_token
bot_token: .slack_bot_token

gateway:
  _target_: csp_bot.Gateway
  modules:
    - /modules/bot
  commands:
    - /commands/help
    - _target_: csp_bot_commands.DelayTestCommandModel
    - _target_: csp_bot_commands.FunCommandModel
    - _target_: csp_bot_commands.MetsCommandModel
    - _target_: csp_bot_commands.ThanksCommandModel
    - _target_: csp_bot_commands.TroutSlapCommandModel

Agent commands and MCP

Install csp-bot-commands[agent] to enable /ask and /summarize. Both command models accept model_name and optional mcp_servers alongside the local chat tools:

_target_: csp_bot_commands.AskCommandModel
model_name: "anthropic:<model>"
mcp_servers:
  - url: https://tools.example.com/mcp
    prefix: knowledge
    headers_env:
      Authorization: KNOWLEDGE_MCP_AUTH
    tools: [search]
    timeout: 60

Use SummarizeCommandModel for the same configuration on /summarize; it still requires a connected chat backend to read channel history. Omit mcp_servers to use only the local tools.

URLs must use HTTPS. headers_env maps HTTP headers to environment variables; each variable contains the full header value, including Bearer when required. tools restricts the server tools exposed to the agent, and prefix distinguishes tools from different servers. Remote servers enforce their own authorization; local chat access policies do not apply to external tools.

Metadata

Release files for csp-bot-commands 2.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csp-bot-commands 2.0.3
File Size Uploaded Provenance Actions
csp_bot_commands-2.0.3.tar.gz 45.2 kB Without provenance Details for csp_bot_commands-2.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for csp-bot-commands 2.0.3
File Interpreter ABI Platform Actions
csp_bot_commands-2.0.3-py3-none-any.whl Python 3 none any Details for csp_bot_commands-2.0.3-py3-none-any.whl

Total release size: 96.3 kB

Release files / csp_bot_commands-2.0.3.tar.gz

Download URL csp_bot_commands-2.0.3.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
50ec92130c13cdde77859345f28f9cc2478641efd24a54b9117f73531e8fa181
BLAKE2b-256 checksum
How to use checksums
bce65ea7f377cd8b6fd89053b187eb33be917759046a86dd844323d7f536911c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / csp_bot_commands-2.0.3-py3-none-any.whl

Download URL csp_bot_commands-2.0.3-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae26a8e8570e9a557ccd07c75c7fdd36dcf0d94de9e93b3b6f1b1016f2cc648a
BLAKE2b-256 checksum
How to use checksums
524895a073983ac3b3834bc65c4b9092179b4177c1284898715ef2cce380809b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for csp-bot-commands 2.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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