Skip to content

mastodon bot that posts Daniel Craig's "the weekend" introduction every weekend.

License

Notifications You must be signed in to change notification settings

gowthamgts/craig-weekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

mastodon bot that posts Daniel Craig's "the weekend" introduction every weekend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published