From 62c5dd8602ac30e06e03a49bebbd06501445b52d Mon Sep 17 00:00:00 2001 From: EL2020 Date: Tue, 22 Jun 2021 20:04:17 -0400 Subject: [PATCH 1/2] made .eco's channel lock message more clear --- src/commands/fun/modules/eco-utils.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/commands/fun/modules/eco-utils.ts b/src/commands/fun/modules/eco-utils.ts index d014374..f22eca8 100644 --- a/src/commands/fun/modules/eco-utils.ts +++ b/src/commands/fun/modules/eco-utils.ts @@ -62,9 +62,17 @@ export function getSendEmbed(sender: User, receiver: User, amount: number): obje } export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean { - if ((guild?.id === "637512823676600330" && channel?.id === "669464416420364288") || IS_DEV_MODE) return true; - else { - channel.send("Sorry, this command can only be used in Monika's emote server. (#mon-stocks)"); + if (IS_DEV_MODE) { + return true; + } + + if (guild?.id !== "637512823676600330") { + channel.send("Sorry, this command can only be used in Monika's emote server."); return false; + } else if (channel?.id === "669464416420364288") { + channel.send("Sorry, this command can only be used in <#669464416420364288>."); + return false; + } else { + return true; } } From ce414cb266b67daaa5eb5912e1c9a279a41e6213 Mon Sep 17 00:00:00 2001 From: EL2020 Date: Tue, 22 Jun 2021 22:13:56 -0400 Subject: [PATCH 2/2] made .eco daily display new balance --- src/commands/fun/modules/eco-core.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/fun/modules/eco-core.ts b/src/commands/fun/modules/eco-core.ts index a1fff4f..517bfba 100644 --- a/src/commands/fun/modules/eco-core.ts +++ b/src/commands/fun/modules/eco-core.ts @@ -19,7 +19,13 @@ export const DailyCommand = new NamedCommand({ embed: { title: "Daily Reward", description: "You received 1 Mon!", - color: ECO_EMBED_COLOR + color: ECO_EMBED_COLOR, + fields: [ + { + name: "New balance:", + value: pluralise(user.money, "Mon", "s") + } + ] } }); } else