Last active
January 19, 2026 19:43
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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