From a2ee743b2636e126f9e2bb073131741d8173ae03 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Wed, 3 Aug 2022 04:19:03 +0200 Subject: [PATCH] Add /sync command --- src/commands/sync.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/commands/sync.ts diff --git a/src/commands/sync.ts b/src/commands/sync.ts new file mode 100644 index 0000000..c45aa8c --- /dev/null +++ b/src/commands/sync.ts @@ -0,0 +1,14 @@ +import Logger from "../util/Logger"; +import Interface, { Command } from "./Interface"; +const c = new Logger("/sync", "blue"); + +export default async function handle(command: Command) { + if (!Interface.target) { + c.log("No target specified"); + return; + } + + Interface.target.sync(); + + c.log(`Synced ${Interface.target.account.name}`); +} \ No newline at end of file