CLI command to reject

This commit is contained in:
Jordan Eldredge 2020-11-30 16:38:00 -05:00
parent d23c806a35
commit 7f1b0fc538

View file

@ -14,6 +14,7 @@ import { searchIndex } from "./algolia";
import { scrapeLikeData } from "./tasks/scrapeLikes";
import { screenshot } from "./tasks/screenshotSkin";
import Shooter from "./shooter";
import UserContext from "./data/UserContext";
async function main() {
const client = new Discord.Client();
@ -33,6 +34,15 @@ async function main() {
console.log("Screenshot update complete.");
break;
}
case "reject": {
const md5 = argv._[1];
if (md5 == null) {
return;
}
await Skins.reject(new UserContext("CLI"), md5);
break;
}
case "screenshots": {
let count = 1000;
await Shooter.withShooter(async (shooter: Shooter) => {