Removed replies to bots
parent
0b7c389875
commit
da9b7f9114
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue