KOW-4 [m] /random should pick 1-10, not 1-11
This commit is contained in:
parent
07a6cb2ba8
commit
7083f0a10c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue