A docker container for my very dodgy Big Ben mastodon bot.
3.4K
Powers https://mastodon.org.uk/@bigben
Uses v0.19.0 of https://github.com/ihabunek/toot
Not much more to say really. It runs as a cron job, on the hour every hour. Everything is hardcoded. I will at some point make it less shonky but right now it'll do!
The following are used to build .config/toot/config.json. The easiest way to get them is to install toot, login to your account and then view that file:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: bigben
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: bigben
image: cablespaghetti/bigben
env:
- name: MASTODON_INSTANCE
value: mastodon.org.uk
- name: MASTODON_USERNAME
value: bigben
- name: MASTODON_ACCESS_TOKEN
value: <my access token>
- name: MASTODON_CLIENT_ID
value: <my client id>
- name: MASTODON_CLIENT_SECRET
value: <my client secret>
restartPolicy: OnFailure
Content type
Image
Digest
Size
33.9 MB
Last updated
almost 8 years ago
docker pull cablespaghetti/bigben