···11-#!/bin/bash
22-33-# Script to run the Thicket Zulip bot
44-# Usage: ./run-bot.sh [config-file]
55-66-set -e
77-88-# Default configuration file
99-CONFIG_FILE="${1:-./zuliprc}"
1010-1111-# Check if config file exists
1212-if [ ! -f "$CONFIG_FILE" ]; then
1313- echo "Error: Configuration file '$CONFIG_FILE' not found."
1414- echo "Please copy zuliprc.template to zuliprc and fill in your bot credentials."
1515- exit 1
1616-fi
1717-1818-# Check if we're in the right directory
1919-if [ ! -f "pyproject.toml" ]; then
2020- echo "Error: Please run this script from the thicket project root directory."
2121- exit 1
2222-fi
2323-2424-echo "Starting Thicket Zulip bot with config: $CONFIG_FILE"
2525-echo "Bot will be available as @thicket in your Zulip chat."
2626-echo "Type Ctrl+C to stop the bot."
2727-echo ""
2828-2929-# Run the bot using zulip-run-bot
3030-uv run zulip-run-bot src/thicket/bots/thicket_bot.py --config-file "$CONFIG_FILE"