Don't include G2G and OK in sherlock
This commit is contained in:
parent
c0826f2396
commit
e7cd1b98fd
|
@ -5,6 +5,7 @@ import { SendableEmbed } from "revolt-api";
|
||||||
import FormData from 'form-data';
|
import FormData from 'form-data';
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
|
let IGNORED = ["OK", "G2G"];
|
||||||
let RUNNING: string[] = [];
|
let RUNNING: string[] = [];
|
||||||
|
|
||||||
export default async function sherlock(message: Message, args: string[], nsfw: boolean) {
|
export default async function sherlock(message: Message, args: string[], nsfw: boolean) {
|
||||||
|
@ -142,8 +143,10 @@ export default async function sherlock(message: Message, args: string[], nsfw: b
|
||||||
if (line.startsWith('[+]')) {
|
if (line.startsWith('[+]')) {
|
||||||
line = line.substring(3).trimStart();
|
line = line.substring(3).trimStart();
|
||||||
const [name, url] = line.split(': ');
|
const [name, url] = line.split(': ');
|
||||||
|
if (!IGNORED.includes(name)) {
|
||||||
matches.push({ user: currentUser, name, url });
|
matches.push({ user: currentUser, name, url });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (line.startsWith('[*] Checking username')) {
|
else if (line.startsWith('[*] Checking username')) {
|
||||||
line = line.substring('[*] Checking username'.length, line.length - 'on:'.length).trim();
|
line = line.substring('[*] Checking username'.length, line.length - 'on:'.length).trim();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue