KOW-4 [m] /random should pick 1-10, not 1-11

This commit is contained in:
Aidan 2025-05-27 23:00:15 -04:00
parent 07a6cb2ba8
commit 7083f0a10c

View file

@ -63,7 +63,7 @@ function getRandomInt(max: number) {
export default (bot: Telegraf<Context>) => {
bot.command('random', spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => {
const Strings = getStrings(languageCode(ctx));
const randomValue = getRandomInt(11);
const randomValue = getRandomInt(10);
const randomVStr = Strings.randomNum.replace('{number}', randomValue);
ctx.reply(