Skip to content

feat(macros): Hackatime macro#179

Open
twonfi wants to merge 3 commits intohackclub:mainfrom
twonfi:feat/hackatime-macro
Open

feat(macros): Hackatime macro#179
twonfi wants to merge 3 commits intohackclub:mainfrom
twonfi:feat/hackatime-macro

Conversation

@twonfi
Copy link
Copy Markdown
Member

@twonfi twonfi commented Mar 15, 2026

This macro tells people to use #hackatime-help.

Flavortown wants people to use #hackatime-help instead of #flavortown-help, so I added a macro similar to ?identity that redirects people to the correct channel.


Default response (pretty Flavortowny):

Hi (user), could you ask that question in <#C0AFG0XGGMP>? :rac_cute:

It helps us keep track of Hackatime-related questions easier!

I've marked this thread as resolved

This macro tells people to use #hackatime-help.

Flavortown wants people to use #hackatime-help instead of
#flavortown-help, so I added a macro similar to ?identity
that redirects people to the correct channel.

***

Default response (pretty Flavortowny):
> Hi (user), could you ask that question in
> <#C0AFG0XGGMP>? :rac_cute:
>
> It helps us keep track of Hackatime-related questions
> easier!
>
> _I've marked this thread as resolved_
Copilot AI review requested due to automatic review settings March 15, 2026 03:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Slack macro to Nephthys to redirect Hackatime-related questions into the dedicated support channel, and auto-resolve the originating ticket thread for cleanliness.

Changes:

  • Added a new ?hackatime macro implementation that replies with a redirect message and resolves the ticket.
  • Added a new transcript entry (hackatime_macro) to configure the macro’s response text.
  • Documented the new macro in the README and registered it in the macro registry.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
README.md Documents the new ?hackatime macro in the list of available macros.
nephthys/transcripts/transcript.py Adds hackatime_macro transcript text used by the new macro.
nephthys/macros/hackatime.py Implements the Hackatime macro (reply + resolve).
nephthys/macros/init.py Registers Hackatime in the macro import list and macro_list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown
Collaborator

@MMK21Hub MMK21Hub left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! My only comment is that we're fine with some Hackatime help questions in #flavortown-help - it's usually only the more complex or difficult to answer ones where we'll redirect to #hackatime-help (otherwise they tend to lay unanswered for ages).

I can see this being a handy macro for those cases though! Could it be rephrased a bit so it doesn't sound like all Hackatime questions should go there, but you can get better help for Hackatime-specific questions there?

Otherwise, I've tested it and it's working well :)

Image

@twonfi twonfi requested a review from MMK21Hub March 28, 2026 04:50
@twonfi
Copy link
Copy Markdown
Member Author

twonfi commented Mar 28, 2026

@MMK21Hub 👍 did a simple rephrase, also going ahead and updating branch.

Copilot AI review requested due to automatic review settings March 28, 2026 04:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Slack macro to redirect Hackatime-related questions to #hackatime-help, aligning with Flavortown support workflow and reducing off-topic questions in other help channels.

Changes:

  • Introduces a new ?hackatime macro that replies with a configured redirect message and resolves the ticket.
  • Adds a new hackatime_macro transcript field to configure the macro’s default response.
  • Registers the macro in the macro registry and documents it in the README.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
nephthys/transcripts/transcript.py Adds hackatime_macro transcript text used by the new macro.
nephthys/macros/hackatime.py Implements the ?hackatime macro behavior (reply + resolve).
nephthys/macros/__init__.py Registers Hackatime so it can be invoked.
README.md Documents the new macro in the macro list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@twonfi twonfi marked this pull request as draft March 30, 2026 16:06
@twonfi twonfi marked this pull request as ready for review March 30, 2026 18:58
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.

3 participants