https://github.com/posthog/birthday-bot
PostHog's birthday Slack bot
https://github.com/posthog/birthday-bot
Last synced: 6 months ago
JSON representation
PostHog's birthday Slack bot
- Host: GitHub
- URL: https://github.com/posthog/birthday-bot
- Owner: PostHog
- Created: 2024-11-28T23:22:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-23T00:06:33.000Z (12 months ago)
- Last Synced: 2025-07-17T21:29:40.780Z (6 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# PostHog's Birthday Bot
A Slack bot to collect and send birthday messages.
## Setup
```
npm install
```
```
node index.js
```
## Commands
- `/set-birthday @user DD-MM`: Set someone's birthday.
- `/see-birthdays`: Show all birthdays.
- `/post-birthday-thread @user`: Manually post a thread to the birthday channel for someone.
- `/collect-birthdays @user`: Manually collect birthday messages for someone.
## Structure
A cron job that runs every day at 9am UK time to check:
1. If someone's birthday is 7 days away, trigger a collection of messages.
2. If someone's birthday is today, post a thread to the birthday channel.
There are also some commands that can be used to set birthdays and trigger functions manually.