Skip to content

Commit

Permalink
let me fill anyone's order
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhappyma committed Sep 22, 2024
1 parent d7e5dae commit 8a3df07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/pack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ bot.client.on("messageCreate", async (message) => {
const order = orders[0];
if (!order) return;

if (order.chefId !== message.author.id) {
if (
order.chefId !== message.author.id &&
!env.DEVELOPERS.split(" ").includes(message.author.id)
) {
await message.reply({
content: "Hey, this is someone else's order! Go get your own!",
allowedMentions: { repliedUser: false },
Expand Down

0 comments on commit 8a3df07

Please sign in to comment.