Skip to content

Instantly share code, notes, and snippets.

@mrdrozdov
Created June 14, 2015 17:30
Show Gist options
  • Save mrdrozdov/3c2167bddd2f3f01f542 to your computer and use it in GitHub Desktop.
Save mrdrozdov/3c2167bddd2f3f01f542 to your computer and use it in GitHub Desktop.
Alumni Checkins Script
#!/bin/sh
. /root/Developer/bot-ids/alumni
DATETOUSE="$(TZ=Australia/ACT date "+%A. %B %d, %Y")"
SUBJECT="Checkins! $DATETOUSE"
CONTENT="Welcome to [checkins](https://gist.githubusercontent.com/mrdrozdov/bfd8d218a9414ce11b4d/raw/a23ff8cf560ef6fa60893bade9d05c5fc7f12313/alumin-checkins.txt)!"
curl https://api.zulip.com/v1/messages \
-u $ZULIP_BOT_EMAIL_ALUMNI:$ZULIP_BOT_KEY_ALUMNI \
-d "type=stream" \
-d "to=alumni-checkins" \
-d "subject=$SUBJECT" \
-d "content=$CONTENT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment