From 3f4ee9315f812e5897f988dbde428c18f9a067ec Mon Sep 17 00:00:00 2001 From: Keanu Date: Sat, 13 Mar 2021 15:09:18 +0100 Subject: [PATCH] Added channel lock for eco. --- src/commands/fun/subcommands/eco-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/fun/subcommands/eco-utils.ts b/src/commands/fun/subcommands/eco-utils.ts index 4ad0694..8ea5176 100644 --- a/src/commands/fun/subcommands/eco-utils.ts +++ b/src/commands/fun/subcommands/eco-utils.ts @@ -62,9 +62,9 @@ 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" || process.argv[2] === "dev") return true; + if (guild?.id === "637512823676600330" && channel?.id === "669464416420364288" || process.argv[2] === "dev") return true; else { - channel.send("Sorry, this command can only be used in Monika's emote server."); + channel.send("Sorry, this command can only be used in Monika's emote server. (#mon-stocks)"); return false; } }