MKULTRA GAMING NEWS: Brought to You By PythonFollow me via: Today, I’m feeling a bit under-the-weather. I’ve got the aches, the pains, and the coughing fits. Never-the-less, I wanted to do something, regardless, and I thought to myself, “You know, there are a few gaming news related bots on the fediverse, and most of them kinda suck, because they have no regard for people’s timelines.” In that, I mean, a lot of bots I’ve seen will pump a handful of rounds of feed items into a shotgun, and blast them all over your timeline in extremely short time spans. This sucks, because attempting to read your timeline while a bot spams it, is annoying! So, I solved the problem. What sparked me wanting to do this, was me, suddenly remembering how I asked one of the gaming news bot curators if he could … you know, put some kind of limit or interval on posts that his bot shares, or curate it in a way that it doesn’t share the same news ten times in five minutes. I remember him saying something like, “Well, I don’t know how to do that.” Being me, and knowing how to use a cronjob, I did it myself, with my own Python code, and my own bot. You can follow that bot here, from my Mastodon instance. Here’s how it’s done. Here are your requirements: And here’s a cronjob using a shell script so that it can activate an environment, execute the script, and then close the environment. Shell script: Cronjob: And you’re good to go! This shares once an hour, from a feed, at random, and has retry logic just in case a feed doesn’t work, or blocks scripts, or whatever. Voila.
mkultra.monster is independent, in that it is written, developed, and maintained by one person. Written, developed, and maintained, not for scrapers, bots, scammers, algorithms, or grifters: But for people to follow and read, just like the way it used to be, back in the golden age of the internet.
mkultra.monster is independent, in that it is written, developed, and maintained by one person. Written, developed, and maintained, not for scrapers, bots, scammers, algorithms, or grifters: But for people to follow and read, just like the way it used to be, back in the golden age of the internet.
FEDIVERSE COMMENTSYou can use your Mastodon or other ActivityPub account to comment on this article by replying to the associated post.
|

WEBMENTIONS
Have you written a response to this post? Send me a webmention!
📝 How to send a webmention
To send a webmention, your response page must contain an exact link to this post and be publicly fetchable.
After creating your response, paste the URL below. Social posts often need a bridge such as Bridgy before they appear as webmentions here.
Loading webmentions...
0 likes, 0 reposts
Unable to load webmentions.