From 14b107dd517863942a790290edcf590197238c52 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Feb 2023 22:16:53 -0500 Subject: [PATCH] Update insufficient balance and new user messages --- TODO.md | 2 +- controllers/accountController.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 82e7fac..074fbbd 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ ## TODOs - ~~Create balance command for user to view their balance~~ - ~~Create a command that explains the pricing~~ -- Update welcome and insufficient replies +- ~~Update welcome and insufficient replies ~~ - add a section for the help menu to show items that need tokens - add a limiter to the rss feeds to slow down the sends when multiple updates are occurring - add a blank .env file to the git diff --git a/controllers/accountController.js b/controllers/accountController.js index a6287d0..b452e44 100644 --- a/controllers/accountController.js +++ b/controllers/accountController.js @@ -75,11 +75,11 @@ exports.checkBalance = (_discordAccountId, callback) => { exports.insufficientTokensResponse = (interaction) => { log.DEBUG("INSUFFICIENT TOKENS RESPONSE") - return interaction.reply("Sorry, not enough tokens for this request."); + return interaction.reply({ content: `Sorry ${interaction.member.user}, you don't have enough tokens for this purchase. Please contact your bot rep to increase your balance to have more fun playing around!`, ephemeral: true }); } exports.welcomeResponse = (interaction) => { log.DEBUG("WELCOME RESPONSE") - return interaction.reply("Hey there, you have an account now."); + return interaction.reply({ content: `Hey there ${interaction.member.user}! You haven't ran any commands that require tokens before. I've gone ahead and created an account for you. When you get a chance reach out to your nearest bot rep to fill your balance to start playing around! In the meantime however, you can run \`/pricing\` to view the current pricing.`, ephemeral: true }); } \ No newline at end of file