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

Crying Counter: Subfeature of Triggers #1

Open
EthanThatOneKid opened this issue Nov 13, 2022 · 0 comments
Open

Crying Counter: Subfeature of Triggers #1

EthanThatOneKid opened this issue Nov 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@EthanThatOneKid
Copy link
Collaborator

EthanThatOneKid commented Nov 13, 2022

What is Crying Counter

Crying Counter is a Discord bot which replies to user messages containing the phrase "im crying" (assisted by Levenshtein Distance). The reply consists of the following message.

Stop crying.

Crying count of @{user}: {count}

Note on Triggers

"Crying Counter" is the name of an example use-case of the Triggers Discord bot.

What is Triggers

[10:21 PM]Joel (He/Him): right now its pretty simple

you have /trigger new, which takes a string input
the bot then dm's you when the input is sent (only in mutual guilds and visible channels)

you also have /trigger reset, which just deletes the stored trigger
[10:22 PM]Joel (He/Him): i just set the trigger to my name so i can see when people mention me

A slash command for registered users to edit their trigger preferences on our Discord server. Bot sends a DM to club member when a message is sent to any channel that they have read access to which happens to match one of the triggers they’ve set.

How does Crying Counter relate to Triggers?

The Crying Counter reply is the result of a Triggers bot invocation. The reply is programmatically set by the user via slash command. Admins are able to set global triggers for users to opt into and play along for themselves.

Implementation requirements

  • Persistent database for storing user trigger preferences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant