From c69661e3b3d3d65981569e79188aba153dcfa9b1 Mon Sep 17 00:00:00 2001 From: tjjfvi <44031566+tjjfvi@users.noreply.github.com> Date: Fri, 20 Nov 2020 14:29:56 -0800 Subject: [PATCH 1/2] Add 'thank' to rep list, for 'thank you'. --- src/modules/rep.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rep.ts b/src/modules/rep.ts index eb7ba4fe..61a2650d 100644 --- a/src/modules/rep.ts +++ b/src/modules/rep.ts @@ -19,7 +19,7 @@ export class RepModule extends Module { MAX_REP = 3; - THANKS_REGEX = /\b(?:thanks|thx|cheers|thanx|thnks|ty|tysm|tks|tkx)\b/i; + THANKS_REGEX = /\b(?:thanks?|thx|cheers|thanx|thnks|ty|tysm|tks|tkx)\b/i; async getOrMakeUser(user: User) { let ru = await RepUser.findOne( From 6162c7b7c3086c7b93fc0f5e6b44a20b311423fc Mon Sep 17 00:00:00 2001 From: tjjfvi <44031566+tjjfvi@users.noreply.github.com> Date: Sat, 21 Nov 2020 08:38:33 -0800 Subject: [PATCH 2/2] Expand `thanks?` to `thank|thanks` in rep regex --- src/modules/rep.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rep.ts b/src/modules/rep.ts index 61a2650d..61456594 100644 --- a/src/modules/rep.ts +++ b/src/modules/rep.ts @@ -19,7 +19,7 @@ export class RepModule extends Module { MAX_REP = 3; - THANKS_REGEX = /\b(?:thanks?|thx|cheers|thanx|thnks|ty|tysm|tks|tkx)\b/i; + THANKS_REGEX = /\b(?:thank|thanks|thx|cheers|thanx|thnks|ty|tysm|tks|tkx)\b/i; async getOrMakeUser(user: User) { let ru = await RepUser.findOne(