mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
CLI command to reject
This commit is contained in:
parent
d23c806a35
commit
7f1b0fc538
1 changed files with 10 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue