mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-02 06:52:19 +00:00
Process uploads from the cli
This commit is contained in:
parent
650c1af417
commit
06bd83897f
1 changed files with 8 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ import UserContext from "./data/UserContext";
|
|||
import { integrityCheck } from "./tasks/integrityCheck";
|
||||
import { ensureWebampLinks, syncWithArchive } from "./tasks/syncWithArchive";
|
||||
import { syncFromArchive } from "./tasks/syncFromArchive";
|
||||
import { processUserUploads } from "./api/processUserUploads";
|
||||
import DiscordEventHandler from "./api/DiscordEventHandler";
|
||||
|
||||
async function main() {
|
||||
const client = new Discord.Client();
|
||||
|
|
@ -132,6 +134,12 @@ async function main() {
|
|||
console.log(await Skins.updateSearchIndex(argv._[1]));
|
||||
break;
|
||||
}
|
||||
case "process": {
|
||||
const handler = new DiscordEventHandler();
|
||||
await processUserUploads((event) => handler.handle(event));
|
||||
handler.dispose();
|
||||
break;
|
||||
}
|
||||
case "add-missing-indexes": {
|
||||
// eslint-disable-next-line no-inner-declarations
|
||||
async function indexPage(pageNumber: number): Promise<void> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue