Add /sync command
This commit is contained in:
parent
10fe4948fe
commit
a2ee743b26
14
src/commands/sync.ts
Normal file
14
src/commands/sync.ts
Normal 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}`);
|
||||
}
|
Loading…
Reference in New Issue
Block a user