From e7cd1b98fdd94f7b9ec77f2a43ca090a17f76516 Mon Sep 17 00:00:00 2001 From: Lea Date: Mon, 17 Apr 2023 16:09:22 +0200 Subject: [PATCH] Don't include G2G and OK in sherlock --- src/sherlock.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sherlock.ts b/src/sherlock.ts index 188d0ca..d1fcf6b 100644 --- a/src/sherlock.ts +++ b/src/sherlock.ts @@ -5,6 +5,7 @@ import { SendableEmbed } from "revolt-api"; import FormData from 'form-data'; import axios from "axios"; +let IGNORED = ["OK", "G2G"]; let RUNNING: string[] = []; export default async function sherlock(message: Message, args: string[], nsfw: boolean) { @@ -142,7 +143,9 @@ export default async function sherlock(message: Message, args: string[], nsfw: b if (line.startsWith('[+]')) { line = line.substring(3).trimStart(); const [name, url] = line.split(': '); - matches.push({ user: currentUser, name, url }); + if (!IGNORED.includes(name)) { + matches.push({ user: currentUser, name, url }); + } } else if (line.startsWith('[*] Checking username')) { line = line.substring('[*] Checking username'.length, line.length - 'on:'.length).trim();