Double pendulums with rainbow colors.

@DatSwingyBoi is a Twitter bot created by Jethro Modequillo that generates animated GIFs of swinging pendulums.

Author shares some technical details:

The bot uses a Python script to generate a randomized instance of some double pendulums via a p5.js sketch, and then records 900 frames of the animation (which is 15 seconds when played at 60fps) with CCapture.js before FFmpeg exports it into an MP4 file. Once I have the video, twython tweets with a caption of the parameters used in the pendulums.

Since I want to run this program regularly (every 12 hours), I made a task in Task Scheduler that opens the Python script at regular intervals, automatically generating and tweeting a video.

Browse botsSee a random bot

Latest from the blog

Botwiki Interview: Nora Reed
Botwiki Interview: Nora Reed

Discussing Twitter, bots, and reasons to stay hopeful.

Poll: Multi-network bots and followers
Poll: Multi-network bots and followers

Does Twitter get your bot the most followers?

Visit the blog

Enjoying Botwiki?

Consider supporting the project!