Skip to content

Instantly share code, notes, and snippets.

@adam91holt
Last active January 19, 2026 19:43
Show Gist options
  • Select an option

  • Save adam91holt/8fe3e49e3b9043b5553ef6d259d03b4b to your computer and use it in GitHub Desktop.

Select an option

Save adam91holt/8fe3e49e3b9043b5553ef6d259d03b4b to your computer and use it in GitHub Desktop.
Simple bash script to run a Clawdbot agent on odd days of the month
#!/bin/bash
# odd-day-task: Run an agent task on odd days of the month
REPLY_TO="+1234567890"
REPLY_ACCOUNT="your-account"
DAY=$(date +%d)
# Check if odd day (remove leading zero for arithmetic)
if (( 10#$DAY % 2 == 1 )); then
echo "πŸŒ™ Odd day ($DAY) - dispatching agent..."
node /Users/adam/apps/clawdbot/dist/entry.js agent \
--agent rex \
--message "Hey Rex, it's an odd day of the month (day $DAY). Time to do your odd-day ritual - pick a random file in the codebase and add a fun comment. πŸ¦–" \
--deliver \
--reply-to "$REPLY_TO" \
--reply-channel whatsapp \
--reply-account "$REPLY_ACCOUNT"
else
echo "πŸ“… Even day ($DAY) - Rex rests."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment