Compare commits

...

2 Commits

Author SHA1 Message Date
08146bd9b0 Clarify some text and fix typos. 2025-04-25 06:21:59 -07:00
1a2c8e5ad1 Add crontab with actual URLs redacted. 2025-04-25 06:21:35 -07:00
2 changed files with 54 additions and 8 deletions

View File

@ -1,15 +1,15 @@
# "Buddy", the Django API and Slack Bot
The 2018 implementation of the Buddy API used in a Slack chat.
Written in Django. Added from archives 2025-04-25.
The 2018 implementation of the Buddy API used in a Slack chat with coworkers.
Written in Django. Added from USB archives on 2025-04-25.
Project was placed directly in the `/root/` folder of a container. The old crontab
Project was placed directly in the `/root/` folder of a container. The crontab
does not have specific instructions on how to start the server, there was likely
a service which handled that. My 2025 guess after not using Django for 6 years
would be that `bin/init_python.sh` and `bin/init_buddy_walk.sh` were run, or at
least that is what was used to test locally.
least that is what was used to test locally during development.
Tried getting it to run and provide more context in this README as to how the
projet can be installed and operated, but not looking to set up Django at this
time, just going to use the repo as a reference when rewriting in a different
language.
Tried getting it to run in order to provide more context in this README as to
how the project can be installed and operated, but not looking to set up Django
at this time, just going to use the repo as a reference when rewriting in a
different language.

46
crontab.txt Normal file
View File

@ -0,0 +1,46 @@
## Admin ##
# On reboot to Chad
@reboot curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Buddys cron container has been rebooted."}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
## Day specific ##
# Wednesday mornings to #WWWW
#15 08 * * 3 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Hey guys! Have you considered what to have for WWWW yet?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
# Moved to other channel after Sam changed groups.
30 08 * * 3 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Hey guys! Have you considered what to have for WWWW yet?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
# Friday mornings before 10 to #WWWW
#15 08 * * 5 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"UAs?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
# Moved to other channel after Sam changed groups.
30 08 * * 5 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"UAs?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
## Daily ##
# Monday - Thursday at 16:30 and 16:50 to #Taco
30 16 * * 1-4 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Do your time?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
50 16 * * 1-4 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Q?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
# Friday at 14:40 and 15:00 to #Taco
40 14 * * 5 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Do your time?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED
00 15 * * 5 curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Q?"}' \
https://hooks.slack.com/services/REDACTED/REDACTED/REDACTED