/Totes-Random-Bot

The eternal bird eats its own tail.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Totes Random Bot

Taking random numbers that were generated from Twitter, and posting them to Twitter, 140 bits at a time.

What?

After me, Sean, and Taylor unleashed the potential of twitter for the purpose of generating random numbers, we knew that we had a valuable resource on our hands, a resource that had to be shared with the world. And what better way to share it than via Twitter? With this bot we not only make randomness easily accessible, but we deliver the wealth directly back in the hands of our laborers.

How?

Much like the original Totes Random, Totes Random Bot is written in Haskell using stack. It hits the /bits endpoint of the Totes Random api in order to get 140 random bits, and posts them to Twitter using the api. It then hits the /float endpoint to get a random float (n) between 0 and 1, and waits for (n * 24) hours before it tweets again.

Image credit goes to Oglaf (nsfw). Buy the t-shirt from them at <a href=https://www.topatoco.com/merchant.mvc?Screen=PROD&Store_Code=TO&Product_Code=OG-OUROBOROS&Category_Code=OG>Topatoco.