https://github.com/mfa/stuendlich-bot
send a toot every hour
https://github.com/mfa/stuendlich-bot
Last synced: 10 months ago
JSON representation
send a toot every hour
- Host: GitHub
- URL: https://github.com/mfa/stuendlich-bot
- Owner: mfa
- Created: 2022-12-11T18:24:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-10T19:15:01.000Z (about 1 year ago)
- Last Synced: 2025-06-10T20:28:05.814Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# stuendlich bot
## about
Send a message to all followers in the activitypub network (Mastodon, GotoSocial, ...) every full hour.
This Python script uses no other dependencies except core Python 3.7+.
Deployed version: [@stuendlich@cress.space](https://fedi.cress.space/@stuendlich) (German, Europe/Berlin, private)
## setup
- Get an access-token for your bot, see
- create a `config.json` like this:
```
{
"access_token": "insert_access_token_here",
"timezone": "Europe/Berlin",
"template": "Es ist jetzt {time} Uhr.",
"server_url": "fedi.cress.space",
"visibility": "private"
}
```
- change `timezone`, `server_url` and `template` for your setup.
- The string in `template` is "It is now {time}." in German.
- `visibility` should be either "private" or "unlisted" - don't be rude and use public
- add a cron to trigger the script every hour, i.e.
```
0 * * * * python /path/to/stuendlich.py
```