Categories
Uncategorized

DotBot (Another Mastodon Bot)

Well, it’s been two weeks since I wrote about the @WeShouldBuild bot on Mastodon and somehow I created another bot. This one is called @DotBot and it creates a new piece of dot-based art once per day. (You can see an example above.)

I once again used Mastodon.py for this (GitHub and Docs) and there are twice as many lines of code for this one, which is still less than 50 lines. This one generates an image, saves it to disk, then posts that along with a small amount of text. A cron job kicks things off at 8:30am CST every day.

As for these dots? I realized it’s something I’ve been toying with for over a decade!

The image above was generated with a Processing sketch in April 2011. At that point I had probably been using Processing for less than a year. I had a lot of fun exploring creating images with code.

Here’s some fun I had with the images being projected onto a large while wall and taking photos of myself in front of it.

I found a folder dated September 2017 that had a bunch of generated images which I think I may have compiled into a video with each image being a frame. (I’ve done this other times, I just can’t find an output file for these. I probably did them last minute for the Maker Faire Milwaukee Dark Room and never got a chance to document them!)

I did find these images in the folder though… Not sure what I was doing, but I like it. If I had to dig up some related things I’d pick annular (more info) from 2013 and maybe Shape Grid Circles from 2019. I realized there are a few other related things but maybe they warrant their own post. Especially if I can find the videos. (If not, I can recreate them.)

Okay, that went a bit off course (of course) but the important thing is, if you’re on the Fediverse and want to see new dot-based colorful art each day, just follow @dotbot@botsin.space

And if you’re not on the Fediverse you can still get the RSS feed! Just grab https://botsin.space/@dotbot.rss

Categories
Uncategorized

We Should Build (A Mastodon Bot)

I joined Mastodon at the end of October 2022 (I’m @rasterweb@mastodon.social) and it’s been amazing. I can’t tell you how much I love a platform with no ads, no tracking, and no far-right extremists. So after (exactly) two months I’m pleased to be releasing my first Mastodon bot. If you’re interested, give a follow to @weshouldbuild@botsin.space

I’ve described it as “A helpful bot that will give you suggestions for things to build…” and it’s just simple and silly and it was an easy way for me to get started with bots on Mastodon. It comes from the work I did on the MMPIS at Milwaukee Makerspace.

I used Mastodon.py for this (GitHub and Docs) and even though I set out to dig deeper into Python back in 2020, things got derails (ha, as did the world) so my Python skills are still lacking, but this is seriously less than 20 lines of code and I had a fun time writing it.

Besides my main Mastodon account I have another account that is really just a backup account (for testing and… because backup) and two accounts on servers run by two friends on their own servers. I chose to put this on botsin.space because it’s specifically for Mastodon bots. (I also sent the admin a donation to help cover the server costs.)

I’m excited about creating another bot already, and I have an idea what I want to do. I think this will be a good way for me to flex my coding muscles since I’ve been writing the same sort of things for the past two years and more Python experience could certainly come in handy.