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

Ideas #1

Open
peerchemist opened this issue May 7, 2024 · 0 comments
Open

Ideas #1

peerchemist opened this issue May 7, 2024 · 0 comments

Comments

@peerchemist
Copy link
Member

This bot will be present in the general channel, but newcomers will not know of its presence. Of course, older group members can point out that the bot exists to newcomers, but what if we make the bot stand out on its own?

We can have it draw attention to itself by casually dropping reactions on msgs which contain some keywords.

Example code:

  // regexp which matches wrapped stuff
  RegExp wrappedRegex = RegExp(r'^wrap(ed)?( peercoin)?$');

  // listen for some keywords and react to msg in order to attract attention
  bot.hears(wrappedRegex, (ctx) async {
    await ctx.react("👀");
  });

  // mint regex
  RegExp mintRegex = RegExp(r'^(stake|mint(ing)?)( peercoin)?$');

  bot.hears(mintRegex, (ctx) async {
    await ctx.react("😎");
  });

  // mobile regex
  RegExp mobileRegex = RegExp(r'^(mobile|android|ios)( wallet)?$');

Or it can straight up respond to the user and ask the user to message it in private.

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

No branches or pull requests

1 participant