Skip to content

Instantly share code, notes, and snippets.

@mykeels
Last active November 29, 2021 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykeels/2c1a04301c7ef9cb54696529565c3b10 to your computer and use it in GitHub Desktop.
Save mykeels/2c1a04301c7ef9cb54696529565c3b10 to your computer and use it in GitHub Desktop.
A twitter bot that picks users at random, useful for giveaways.

An idea for a twitter bot

  • that picks users at random

I got this idea when I saw unicodeveloper's tweets about picking five twitter accounts, that indicate interest in an advanced JavaScript course, at random to gift the course to.

Syntax

Here's a list of correct syntax for such a bot, and meanings:

  • @PickAtRandom n replies
  • @PickAtRandom n likes
  • @PickAtRandom n retweets
  • @PickAtRandom n replies to [link]
  • @PickAtRandom n likes to [link]
  • @PickAtRandom n retweets to [link]

(singular expressions)

  • @PickAtRandom a reply
  • @PickAtRandom a like
  • @PickAtRandom a retweet

Output

When invoked with a valid command, the bot will respond to the selected tweets/users while mentioning the commander, and the tweet will include the link to the command tweet e.g.

"1. This reply is selected. cc @mykeels [link]"

@orimdominic
Copy link

Shouldn't this be considered as done, boss? @PickAtRandom

@mykeels
Copy link
Author

mykeels commented Nov 29, 2021

Ah, yes!

This is done with https://twitter.com/PickAtRandom

Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment