Removed replies to bots

master
j 2024-04-04 23:14:01 -04:00
parent 0b7c389875
commit da9b7f9114
1 changed files with 2 additions and 0 deletions

View File

@ -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);