thaldrin/src/utils/command.usage.ts

17 lines
497 B
TypeScript

// import supabase from "./database";
// import { Command, Usage } from "./types";
// import modulus from "./database"
// type C = { name: string; amount: number };
// export default async function usage(c: Map<string, Command>) {
// let commands: C[] = [];
// let data = modulus.
// for(const command in data) {
// // @ts-ignore
// commands.push({ name: data[command].name, amount: data[command].amount });
// }
// return commands.sort((a, b) => a.amount - b.amount);
// }