My agentic slop goes here. Not intended for anyone else!
at main 2.0 kB view raw
1#!/bin/bash 2 3# Simple test script for Zulip bots 4# Ensure you have a .zuliprc file configured first 5 6echo "Zulip Bot Test Script" 7echo "=====================" 8echo "" 9 10if [ ! -f "$HOME/.zuliprc" ]; then 11 echo "Error: ~/.zuliprc not found" 12 echo "" 13 echo "Create ~/.zuliprc with the following format:" 14 echo "[api]" 15 echo "email = bot@example.com" 16 echo "key = your-api-key-here" 17 echo "site = https://your-subdomain.zulipchat.com" 18 exit 1 19fi 20 21echo "Found .zuliprc configuration" 22echo "" 23 24PS3="Select a bot to test: " 25options=("Echo Bot" "Echo Bot (verbose)" "Test Realtime Bot" "Atom Feed Bot (interactive)" "Quit") 26 27select opt in "${options[@]}" 28do 29 case $opt in 30 "Echo Bot") 31 echo "Starting Echo Bot..." 32 echo "The bot will echo all messages it receives" 33 echo "Press Ctrl+C to stop" 34 echo "" 35 dune exec zulip_bot/echo_bot 36 break 37 ;; 38 "Echo Bot (verbose)") 39 echo "Starting Echo Bot with verbose logging..." 40 echo "The bot will echo all messages with detailed logs" 41 echo "Press Ctrl+C to stop" 42 echo "" 43 dune exec zulip_bot/echo_bot -- -vv 44 break 45 ;; 46 "Test Realtime Bot") 47 echo "Starting Test Realtime Bot..." 48 echo "This bot logs all received messages and tests storage" 49 echo "Press Ctrl+C to stop" 50 echo "" 51 dune exec zulip_bot/test_realtime_bot 52 break 53 ;; 54 "Atom Feed Bot (interactive)") 55 echo "Starting Atom Feed Bot in interactive mode..." 56 echo "Use !feed help to see available commands" 57 echo "Press Ctrl+C to stop" 58 echo "" 59 dune exec zulip_bot/atom_feed_bot -- interactive 60 break 61 ;; 62 "Quit") 63 echo "Exiting..." 64 break 65 ;; 66 *) echo "Invalid option $REPLY";; 67 esac 68done