Add /sync command

This commit is contained in:
memetrollsXD 2022-08-03 04:19:03 +02:00
parent 10fe4948fe
commit a2ee743b26
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD

14
src/commands/sync.ts Normal file
View File

@ -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}`);
}