|
4 months ago | |
---|---|---|
.gitignore | 4 months ago | |
README.md | 4 months ago | |
UNLICENSE.txt | 4 months ago | |
config.example.sh | 4 months ago | |
namecountdown.sh | 4 months ago |
make your fedi display name count down to a date
config.example.sh
with the following
INSTANCE_URL
- instance urlACCESS_TOKEN
- access tokenNAME_PATTERN
- display name pattern, the string {}
will be replaced with the countdown timerON_DATE_NAME
- display name to set on the date that is being counted down to. this is just a static name. no date difference substitution is performed here (it would always be 0 anyway)COUNTDOWN_DATE
- the date to count down to, in some form that date -d
will understandconfig.example.sh
to config.sh
namecountdown.sh -d
to dry run and print the display name it should change tonamecountdown.sh
to actually update your display nameif the date to count down to has passed, the script does nothing
you'll probably want to put this on a cron job or something to update every day
enjoy