Skip to content

Commit

Permalink
Update already submitted message
Browse files Browse the repository at this point in the history
  • Loading branch information
chiliec committed Mar 1, 2024
1 parent 869ed84 commit 5e991a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions locales/en.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>{$collectionAddress}</code>
Expand All @@ -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.
6 changes: 1 addition & 5 deletions src/bot/features/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e991a7

Please sign in to comment.