Created
June 14, 2015 17:30
-
-
Save mrdrozdov/3c2167bddd2f3f01f542 to your computer and use it in GitHub Desktop.
Alumni Checkins Script
This file contains 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/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