thaldrin/src/utils/command.usage.ts

17 lines
497 B
TypeScript
Raw Normal View History

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