0.1.2 • Published 1 year ago
@henta/mentions v0.1.2
@henta/mentions
bot's reaction to requests
📌 Is part of HENTA Framework
const botMentionsMiddleware = (ctx, next) => mentionsMiddleware(ctx, next, {
mention: /\/|mybot|botik/,
// optional
noMentionCallback: (ctx, next, reason) => {
console.log('no mention callback', reason);
}
})