A simple Ruby script for sending DM messages on Mastodon. I made it mostly for my own purposes so that I can send reminders to myself :)
Based on the code from a similar project I wrote before called tootify, which cross-posts from a Bluesky account to Mastodon.
At the moment:
git clone https://github.com/mackuba/remindbot.git
cd remindbot
bundle install
First, log in to an account that you want to post from:
./bot login [email protected]
Then, send messages by passing the handle of the receiver and the message text:
./bot send [email protected] "Reminder - you have a meeting scheduled in 30 minutes"
Note: there is currently very little validation done, so it's not guaranteed to work :)
Copyright © 2024 Kuba Suder (@mackuba.eu).
The code is available under the terms of the zlib license (permissive, similar to MIT).