twitter-winner-picker

Twitter Winner Picker for my 10K giveaway

Stars
31
Committers
1

Twitter (Random) Winner Picker

This app was created as part of my 10K giveaway on Twitter.

The rules for the competition is:

  • Like
  • Retweet
  • Follow

Feel free to use it in a similar competition.

Generate mock data

npm run generate

Generate some mock-data for the wheel. The mock-data will be found in src/mock/users.json. Go to node/generate.ts to configure the generation.

Fetch participants

npm run fetch

Fetch the participants from Twitter. This command will go through each of all your followers, and check if they both liked and retweeted.

⚠️ This can potentially take long time, depending on how many followers you have. For me, it took almost 3 days to go through them all.

The data will be found in src/data/users.json. Go to node/fetchParticipants.ts to configure the twitter client.

Start the wheel

In the App.tsx file, you can choose to import either the mock/users.json or data/users.json. Start the wheel application with

npm start