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

Inspiration Update #349

Merged
merged 9 commits into from
Oct 3, 2024
Merged

Inspiration Update #349

merged 9 commits into from
Oct 3, 2024

Conversation

ariyadmir
Copy link
Contributor

I've modified my code to simplify the trigger by focusing exclusively on one regex pattern. The parser is triggered with the command '!inspiration', and sends back a friendly inspirational quote.

A script that triggers SlackerBot to publish an inspirational quote whenever someone mentions words like 'inspire', 'inspiration', or, 'motivate'.
A script that triggers SlackerBot to publish an inspirational quote whenever someone mentions the words 'inspire', 'inspiration', or 'motivation'.
The revised code ensures that responses are triggered only by bang commands (!inspire or !inspiration). This update addresses the concern of over-triggering associated with previously used trigger words.
I've modified my code to only check for one regex pattern, specifically '!inspiration'. A match executes the block of code that fetches an inspirational quote from the API and sends it back as a chat response.
@Lacah Lacah self-assigned this Oct 3, 2024
@Lacah
Copy link
Contributor

Lacah commented Oct 3, 2024

Thanks for the quick turnaround and submitting a new PR!

@Lacah Lacah merged commit 1b5a10e into ServiceNowDevProgram:main Oct 3, 2024
1 check passed
@ariyadmir
Copy link
Contributor Author

Thanks for the approval. Cheers! @Lacah

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