craig-weekend

command module
v0.0.0-...-60b71be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

README

Daniel Craig's "Ladies and gentlemen, the weekend" mastodon bot

This bot is based on the original twitter handle "ladies and gentlemen, the weekend 😌" which will publish Daniel Craig video every weekend. I missed seeing this on mastodon, hence spent some time to build this. You can follow @CraigWeekend@techhub.social mastodon account to get the toot.

How it works

Nothing fancy, just a cron job that runs at 12:00 AM UTC on every saturday.

Installation

# clone the repo
git clone https://github.com/gowthamgts/craig-weekend

# change directory
cd craig-weekend

# build and run the binary - this will throw an error stating you are missing some environment variables
make fresh

# add the following entry to your crontab by issuing `crontab -e`. don't forget to update the environment variables
0 0 * * SAT MASTODON_SERVER="" MASTODON_CLIENT_ID="" MASTODON_CLIENT_SECRET="" MASTODON_ACCESS_TOKEN="" <build directory>/craig-weekend

Environment variables

The following environment variables are needed for running the bot.

Environment Variable Name Description
MASTODON_SERVER the mastodon server url. ex: https://mastodon.social
MASTODON_CLIENT_ID your application's client id
MASTODON_CLIENT_SECRET your application's client secret
MASTODON_ACCESS_TOKEN your application's accses token

License

GNU GPL v3

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL