This is a script picking winners for a contest where:
- every winning entry has to mention one other twitter account in a reply
- double winners are allowed
You'll need a few things installed:
- jq
- twarc
- boxes
Run npm install
before running the script.
You'll also need to chmod +x ./giveaway.sh
.
twarc needs to be configured using twarc configure
Replace the conversation ID and your Twitter handle with your data.
Great idea. I'll keep track of winners and discard duplicates.