mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "2969dfd814933a6e8c14ffe8a001d976f02f55fe" and "1330b499c8b4e1af332cde31ef29e59414440417" have entirely different histories.
2969dfd814
...
1330b499c8
2 changed files with 4 additions and 18 deletions
|
|
@ -19,13 +19,7 @@ export const DailyCommand = new NamedCommand({
|
||||||
embed: {
|
embed: {
|
||||||
title: "Daily Reward",
|
title: "Daily Reward",
|
||||||
description: "You received 1 Mon!",
|
description: "You received 1 Mon!",
|
||||||
color: ECO_EMBED_COLOR,
|
color: ECO_EMBED_COLOR
|
||||||
fields: [
|
|
||||||
{
|
|
||||||
name: "New balance:",
|
|
||||||
value: pluralise(user.money, "Mon", "s")
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
|
|
@ -62,17 +62,9 @@ export function getSendEmbed(sender: User, receiver: User, amount: number): obje
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean {
|
export function isAuthorized(guild: Guild | null, channel: TextChannel | DMChannel | NewsChannel): boolean {
|
||||||
if (IS_DEV_MODE) {
|
if ((guild?.id === "637512823676600330" && channel?.id === "669464416420364288") || IS_DEV_MODE) return true;
|
||||||
return true;
|
else {
|
||||||
}
|
channel.send("Sorry, this command can only be used in Monika's emote server. (#mon-stocks)");
|
||||||
|
|
||||||
if (guild?.id !== "637512823676600330") {
|
|
||||||
channel.send("Sorry, this command can only be used in Monika's emote server.");
|
|
||||||
return false;
|
return false;
|
||||||
} else if (channel?.id === "669464416420364288") {
|
|
||||||
channel.send("Sorry, this command can only be used in <#669464416420364288>.");
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue