From da9b7f9114a2a1166d7dc6d01218b6fc8de462ec Mon Sep 17 00:00:00 2001 From: j Date: Thu, 4 Apr 2024 23:14:01 -0400 Subject: [PATCH] Removed replies to bots --- src/rdrama/services/CommentParser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rdrama/services/CommentParser.ts b/src/rdrama/services/CommentParser.ts index 2a73f11..dffba99 100644 --- a/src/rdrama/services/CommentParser.ts +++ b/src/rdrama/services/CommentParser.ts @@ -7,6 +7,8 @@ export class CommentParser { * @returns An object containing the command and its arguments, if any. */ public static parseCommand(comment: Comment): { command: string, args: string[] } { + + if (comment.is_bot) return { command: '', args: [] }; const commandTrigger: RegExp = /!!Oregon\s+(\w+)(?:\s+(.*))?/i; const match = comment.body.match(commandTrigger);