Skip to content

Instantly share code, notes, and snippets.

@maxwofford
Created June 19, 2024 17:17
Show Gist options
  • Save maxwofford/066669f92832f58d6fe281cb8f59a323 to your computer and use it in GitHub Desktop.
Save maxwofford/066669f92832f58d6fe281cb8f59a323 to your computer and use it in GitHub Desktop.
email inviter
#!/bin/bash
for email in $(cat $1); do
echo "inviting: $email"
curl -X POST 'https://arcadius.hackclub.com/slack-invite' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SLACK_KEY" \
-d "{\"email\":\"${email}\"}"
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment