Because #BotsInSpace is shutting down (😢) I'm looking for a new home for my bots.

I have an RSS feed which posts to BlueSky…
And I have Bridgy which converts BSky to Fediverse…

So… Welcome @openbenches.org !

(This is an experiment. Feedback welcome. I might try self-hosting. Not sure yet. I don't know how to move followers across.)

Thinking about this further… I would like your advice and wisdom on how I should self-host my many bots.

All one one sub-domain?
@[email protected]
@[email protected]

Separate sub-domain for each?
@[email protected]
@[email protected]

Buy a new domain for each?
(LOL nope!)

Something else?
(What?)

Thinking about creating a Mastodon instance only for automated accounts.

Wouldn't have to deal with replies, following accounts, or anything complicated.

I even had a comedy name picked out for it - but someone beat me to it.

https://masto.bot/

masto.bot

A home for bots and automated accounts on Mastodon

Mastodon hosted on masto.bot

OK! Want to self-host your own bots now #BotsInSpace is going away?

I've made the *simplest* possible server just for you!

https://gitlab.com/edent/activity-bot/

Upload two files to your server (index.php and .htaccess), fill in a couple of details, and… that's it!

This is designed for write-only bots. It isn't interactive, it won't store or reply to messages sent to it, but it will post hashtags, links, mentions, and images.

You can see the sample bot @bot

Feedback very welcome!

Terence Eden / ActivityBot · GitLab

A single PHP file which acts as a basic ActivityPub bot server.

GitLab
@Edent @bot making that single-file activity pub server really paid off huh ^.^

@alifeee @Edent @bot I miss when the web was more like this.

Thank you!

@Edent @bot am I correct that this doesn’t have a UI for seeing / sharing posts if you’re not following the bot?
@Marcus you should be able to search for the bot and see all its posts.
There's a very basic web ui at https://bot.viii.fi/
A simple self-hosted bot.

<a href='https://gitlab.com/edent/activity-bot/'>Get the source code</a>!

@Edent @bot https://bot.viii.fi/bot gives me raw JSON at the mo, which definitely clashes with other servers' expectations about handing me a link
@flippac thanks. Are you able to follow @bot ? Does that work?
@Edent @bot At least as far as a basic UI check goes, yeah
@Edent @bot (tested just now if you're logging when follows happen)

@Edent @bot with your context (see: you made it), how easy do you think it would be to modify the php file to allow multiple bots on one server

ie @[email protected] and @[email protected]

I will accept "go and look at the php file yourself and figure it out" as an acceptable answer :]

@alifeee it is explicitly designed for one bot per script. You can deploy it to a hundred different subdomains though.

@Edent yes :]

I'm thinking of using it soon... I might write an nginx server block and make a PR to give people options, too :]

@Edent this looks awesome! I was looking for something like this yesterday and this is just what I was imagining.

@Edent ooh, intriguing

I'm running an entire separate Mastodon at the moment for my bot and my vps Does Not Like It

@Edent @zuzak I just put my bots as separate accounts on my @gotosocial instance, and the load is negligible. I use python3-mastodon to post because it was readily usable (with a backported patch for bullseye) for this (not a fan of python3). Initial setup I do with a browser, and a trivial SQL command to enable the "this account is a bot" flag.

Upside: Markdown formatting and longer posts.

@Edent @bot oh this is really cool! I did a PHP version as well but it's more files haha

https://github.com/greg-kennedy/phpActivityPub

it's sort of the PHP version of dariusk's minimal node one https://github.com/dariusk/express-activitypub

supports multiple bots, you create one through its "admin" interface and it gives you an API key, which you then include in cURL calls to let the "bot" make posts

GitHub - greg-kennedy/phpActivityPub: Simple, post-only ActivityPub implementation in PHP

Simple, post-only ActivityPub implementation in PHP - greg-kennedy/phpActivityPub

GitHub

@Edent @bot (I have a testbed in action at https://greg-kennedy.com/phpAP but none of these are actually posting much of anything)

see also @TestAccount

@greg @Edent @bot you’ve both earned a mention in the next Trunk & Tidbits blog post (_probably_… actually, I may have a limit or the post could get a bit long this month!)
@Edent Thank you!! I need to try this...

@Edent
If I use a "See more posts on bot.viii.fi" or "Open original page" link on its profile page on my instance, I get what looks like raw json. Could that redirect to the root page instead?

https://bot.viii.fi/bot

@cwilcox808 please raise it as an issue on GitLab so I can keep track of it.
Thanks.
@Edent
Sorry, I couldn't see how to do that, maybe because I'm on my phone.
@bot @Edent when I first explored mastodon seriously a couple years ago the culture was dominated by traumatised Twitter survivors and there seemed to be a strong consensus against any kinds of automation. Has that softened?
@danbri yup! There's 1st class support for labeling accounts as bots, and excellent API support.
Some of the more vocal commentators have found some other shiny rock to complain about.
@Edent If I recall correctly this has zero support for migrating/moving followers to it, or away from it? Not a complaint, if so, but something to keep in mind in terms of assessing whether this is a viable option.
Terence Eden (@edent.tel)

Longer hair than you. Chaotic Good. Doesn't work for The Man™ any more. If you're involved in Blockchain or Crypto you will be blocked on sight. All content © and personal. May not be reproduced without consent. Blog https://shkspr.mobi/blog

Bluesky Social

@Edent Some bizarre code in there.

in_array( $inbox_message["actor"], $followers_ids ) ? $from_follower = true: $from_follower = false;

Removing the duplicated code, this is just

$from_follower = in_array( $inbox_message["actor"], $followers_ids ) ? true : false;

And ... ? true : false is redundant, leaving:

$from_follower = in_array( $inbox_message["actor"], $followers_ids );
@barubary your pull request is very welcome.
@Edent But then I'd have to create a gitlab account and, worse, write PHP. :-(
@barubary I'm happy to hold your hand while you do so.
@Edent @bot question: you say it won't store messages sent to it. How does the Fediverse work in that regard? Messages sent in general are lost if not stored by the recipient? So as owner of such a bot I would effectively never be the wiser as to the feedback on the automated content, right?

@Disputatore messages are stored in several places.
1) The user who sends the message usually retains a copy.
2) The recipient's server receives a copy (and can choose to save it or not).
3) Anyone following the sender will usually receive a copy of all their messages.

I could save a copy of mentions. But that comes with increased disk space, having to handle deletions, and risk that someone will store abusive content on your server.

@Edent thank you for taking the time to walk me through it. I have some suggestions that I will eventually post as issues in your gitlab repository. Hopefully that's adequate. I would fork it, but that would force me to recover my rusted-to-pieces programming skills, not to mention actually learning PHP and probably having to learn a whole bunch of stuff required for this particular domain.
@Edent well, apparently I hadn't used my Gitlab account for too long, it got wiped out, and I can't be bothered to create a new one. My suggestion is to add the saving of replies with the following configuration options:
- roll over recording based on either number of messages or max memory
- discard any messages over a max number of messages or memory
- no limits
Terence Eden / ActivityBot · GitLab

A single PHP file which acts as a basic ActivityPub bot server.

GitLab
@Edent is it mandatory to expose replies?

@Disputatore no. But the data is still on your server whether you like it or not.

If you're happy with that risk, feel free to fork it.

@Edent While there are still bots posting on there, the server is running an old version of Mastodon, and the admin hasn't posted in a while.

I'd also love to support the creative botmaking community somehow, so I'm looking into whether a GoToSocial server would make more sense/be cheaper to run. GTS seems to have pretty good compatibility with Mastodon's API.

@stefan honestly, I think I'm going to turn my single-file server into a bot server.
It doesn't need to deal with anything other than posting & being followed.
Won't allow for interactivity, but that's fine for my usecase.
@Edent @stefan you might have a stampede of users when botsinspace goes away?
@CTD @Edent @stefan is botsin.space going away?
Stefan Bohacek (@[email protected])

The botsin.space Mastodon server has been a huge part of the fediverse, and while it's sad it's being retired, I trust that the creative botmaking community will continue to thrive. "So, given two choices -- asking for more donations so I can pay for more hardware to keep the instance running, or retiring it and encouraging people to support more community-oriented instances, I'll choose the second option every time." https://muffinlabs.com/posts/2024/10/29/10-29-rip-botsin-space/ #BotsInSpace #bots #CreativeBots

Stefan's Personal Mastodon Server
@stefan @CTD @Edent Well, fuck. Guess I need to move the #fediseer proxy bot elsewhere. @jsonarray would it be cool to move @fediseer to utter.online?
@jsonarray I registered [email protected] but I can't get it to send me the email verification link. I've tried like three times.
@db0 I approved it. Perhaps, email stopped working. I'll look into it. You should be able to login.
@jsonarray Did you approve the email too?
@stefan @Edent Seems like @arch was a tiny bit faster: https://floofy.tech/@arch/113396400761912400 I'm guessing the paid accounts won't be for everyone, but it'll do a lot for the long-term perspective I hope.
Arch :arch: (@[email protected])

Okay, systems are up and running for https://botsinbox.net. Bot accounts can be bought through my ko-fi https://ko-fi.com/archdog for $1/month/bot. Feedback is _very much_ welcome and wanted! Currently limiting the number of slots until I'm completely confident in how it'll scale.

Floofy.tech - Where the fluffy beans run around
@julian @stefan @Edent that is certainly the hope!

@julian Nice! And the pricing seems fair!

@arch Do you, uh, offer bulk discount?

https://stefans-creative-bots.glitch.me

@Edent

@stefan There's a £20 tier with unlimited accounts (I may end up halving that soon), or £4.50 for five - might need to tweak the amounts a bit. Alternatively, a custom amount should be able to be entered on the £4.50 or £1 tiers - I'm sure we can work something out :D

@arch Nice!

Well I am still thinking about what makes the most sense for me, but will definitely keep this in mind, thank you!

In the meantime, I added a link to your post to https://botwiki.org/resources/fediverse-bots/#bot-instances, if that's alright. (Or let me know if there's a better page to link to.)

Resources for Fediverse bots | Botwiki

Tutorials, libraries, frameworks, and other resources for making bots for GNU Social networks, like Mastodon.

@stefan That's excellent! Thank you, and best of luck :)