Skip to content

Commit

Permalink
sort cmdStats desc
Browse files Browse the repository at this point in the history
  • Loading branch information
NullDev committed Apr 4, 2024
1 parent 5ae5da9 commit 6127ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/devCmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const devCmd = async function(message){ // @ts-ignore
const cont = message.content;
if (cont.toLowerCase().startsWith(".cmdstats")){
try {
const s = await db.all();
const s = (await db.all()).sort((a, b) => b.value - a.value);
const m = s.map(({ id, value }) => `${id}: ${value}`).join("\n");
await message.channel.send(m);
}
Expand Down

0 comments on commit 6127ee9

Please sign in to comment.