Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slack support #3

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Add slack support #3

merged 3 commits into from
Nov 6, 2023

Conversation

ghickman
Copy link
Contributor

@ghickman ghickman commented Nov 3, 2023

This grabs messages forwarded by BennettBot to our #tech-support-channel and saves counts of them to influxdb.

The expectation is we'll invoke this for "yesterday" (apparently date can do this) in a cronjob so we can capture all messages for the given day. However there's also a --backfill for grabbing all messages.

We're about to add more commands so we don't want to have them all in
the same cli.py.  This moves us to having a cli.py for each sub command,
which is then registered in the top level cli.py.
Copy link
Collaborator

@lucyb lucyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI (and the use of click) is really neat.

@ghickman ghickman merged commit 6a1d29d into main Nov 6, 2023
4 checks passed
@ghickman ghickman deleted the slack branch November 6, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants