command
module
Version:
v0.0.0-...-7355567
Opens a new window with list of versions in this module.
Published: Nov 21, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Celebrations
Facilitates celebrations by sending reminders via custimizable channels like:
- Slack channels,
- Slack direct messages,
- Slack personal reminders.
Celebrations works based on birth date and anniversary dates along with Slack identifiers (see example/config.yml).
Installation
-
Use bin/celebrations-...
executable or complile current version to your system architecture.
-
Copy example/config.yml
to your app directory; modify according to your needs.
-
Install app to desired Slack workspace.
-
Required Slack permissions:
-
bot token scopes:
-
chat:write
(posting to channels)
-
chat:write.public
-
channels:manage
(sending DMs)
-
groups:write
-
im:write
-
mpim:write
-
chat:write.customize
(customizing app visibility)
-
users:read
(downloading users)
-
users.profile:read
-
user token scopes:
reminders:write
(adding reminders)
-
To be able to post to private channel, add bot manually (Channel -> Integrations -> Add App).
-
Optional. Use command ./celebrations download-users [--limit x]
to pre-download users from Slack. Helpful for populating config.yml
file.
-
Setup envronment variables for app runtime:
SLACK_BOT_TOKEN=xoxb-...
(required for most reminders)
SLACK_USER_TOKEN=xoxp-...
(required for setting personal remidners)
- Schedule running
./celebrations send-reminders
once a day on specified hour e.g. 9:30 am via Github actions scheduler or other type of cron.
Development
Run
make run
Build
make all
Test
make test
Changelog
0.5.0
- Refactor code for readability
0.4.0
- Add dates sorting to Monthly Report channel reminder
- Move secrets from
config.yml
to ENV VARs
0.3.0
- Humanize Monthly Report channel reminder
0.2.0
- Add Monthly Report channel reminder
0.1.0
License
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.