From 5e991a7dbd5d1b84dd2d3520788b3194960c9c1c Mon Sep 17 00:00:00 2001 From: Vladimir Babin Date: Fri, 1 Mar 2024 21:27:44 +0300 Subject: [PATCH] Update already submitted message --- locales/en.ftl | 4 ++-- src/bot/features/reset.ts | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/locales/en.ftl b/locales/en.ftl index 2fe2a2e..d414d96 100644 --- a/locales/en.ftl +++ b/locales/en.ftl @@ -15,6 +15,7 @@ admin = .commands-updated = Commands updated. unhandled = Unrecognized command. Try /mint wrong = Something went wrong +submitted = You have already submitted a request. speedup = You're currently waiting in line, and to move up the queue, you can: — Donate any amount of Toncoin from your wallet to the collection address {$collectionAddress} @@ -32,5 +33,4 @@ description = wallet = .wait = Now please provide me with your TON wallet address that will receive the NFT. .incorrect = Please provide correct TON wallet address. - - \ No newline at end of file + \ No newline at end of file diff --git a/src/bot/features/reset.ts b/src/bot/features/reset.ts index d22695f..a27d9a3 100644 --- a/src/bot/features/reset.ts +++ b/src/bot/features/reset.ts @@ -10,11 +10,7 @@ const feature = composer.chatType("private"); feature.command("reset", logHandle("command-reset"), async (ctx) => { if (ctx.dbuser.state === UserState.Submited || ctx.dbuser.minted) { - let status = "submitted request"; - if (ctx.dbuser.minted) { - status = "minted NFT"; - } - return ctx.reply(`You already ${status}`); + return ctx.reply(ctx.t("submitted")); } ctx.dbuser.state = UserState.WaitNothing; ctx.dbuser.votes = await voteScore(ctx);