You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 stuffRegExp 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 regexRegExp mintRegex =RegExp(r'^(stake|mint(ing)?)( peercoin)?$');
bot.hears(mintRegex, (ctx) async {
await ctx.react("😎");
});
// mobile regexRegExp 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.
The text was updated successfully, but these errors were encountered:
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:
Or it can straight up respond to the user and ask the user to message it in private.
The text was updated successfully, but these errors were encountered: