Skip to content

Commit

Permalink
Require admin rights in /numtovalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
mUusitalo authored May 5, 2024
1 parent f696efd commit f22d7c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export const validate = async (ctx: CommandContext) => {
};

export const notValidated = async (ctx: ActionContext | CommandContext) => {
if (!admins.has(ctx.from.id)) return;

const notValidated = await amountToValidate();
await ctx.reply(`Number of entries not validated: ${notValidated}`);
};
Expand Down

0 comments on commit f22d7c5

Please sign in to comment.