new detectors and reactions
This commit is contained in:
parent
73b906fd9b
commit
fe3fd9b1b6
11 changed files with 266 additions and 10 deletions
|
|
@ -12,6 +12,7 @@ const answers = [
|
|||
export default class PingDetector extends Detector {
|
||||
triggerName = 'mention';
|
||||
|
||||
//prevent trigger if user is doing a troll on its own
|
||||
async detect(message) {
|
||||
if (/(^|\b)(feur|quoicoubeh)(\b|$)/i.test(cleanMessageContent(message))) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue