Skip to content

slack_daemon

diapason.channels.slack_daemon

Slack Socket Mode daemon — listens for DMs and responds with DeepResearch.

Run as a standalone process or import start_slack_daemon() to spawn from the server. Uses slack-bolt for reliable Socket Mode handling.

is_running()

Check if the Slack daemon is running.

run_slack_daemon(bot_token, app_token, model='qwen3.5:9b')

Run the Slack daemon (blocking). Handles DMs with DeepResearch.

start_slack_daemon(bot_token, app_token, model='qwen3.5:9b')

Spawn the Slack daemon as a background subprocess.

Returns the PID of the spawned process.

stop_daemon()

Stop the running Slack daemon.