From c817674c51cee652679fbfa972629c6c555f8161 Mon Sep 17 00:00:00 2001 From: O3H Date: Mon, 8 Jul 2024 16:41:55 +0100 Subject: [PATCH] bring back town flags --- aurora/commands/town.ts | 16 +++++++++------- aurora/slashcommands/town.ts | 9 +++++---- bun.lockb | Bin 160744 -> 160744 bytes package.json | 3 ++- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/aurora/commands/town.ts b/aurora/commands/town.ts index 4633c7c0..e48bbd19 100644 --- a/aurora/commands/town.ts +++ b/aurora/commands/town.ts @@ -240,7 +240,8 @@ export default { if (!town) return m.edit({embeds: [new EmbedBuilder() .setTitle("Invalid town name!") .setDescription(opt + " doesn't seem to be a valid town name, please try again.") - .setTimestamp().setColor(Colors.Red) + .setColor(Colors.Red) + .setTimestamp() ]}).then(m => setTimeout(() => m.delete(), 10000)).catch(() => {}) towns = defaultSort(towns) @@ -335,7 +336,7 @@ export default { )) } else townEmbed.addFields(embedField("Residents", townResidentsLength.toString())) - } + } else townEmbed.addFields(embedField("Residents", "There are no residents in this town?")) const townCouncillorsLen = town.councillors.length @@ -373,13 +374,14 @@ export default { // } } - // const [green, red] = ["<:green_tick:1036290473708495028>", "<:red_tick:1036290475012915270>"] - // townEmbed.addFields(embedField("Flags", ` - // ${town.flags.pvp ? green : red } PVP - // `)) + const [green, red] = ["<:green_tick:1036290473708495028>", "<:red_tick:1036290475012915270>"] + townEmbed.addFields(embedField("Flags", ` + ${town.flags.pvp ? green : red } PVP + ${town.flags.public ? green : red } Public + `)) // ${town.mobs ? green : red } Mobs - // ${town.public? green : red } Public + // ${town.public ? green : red } Public // ${town.explosion ? green : red } Explosions // ${town.fire ? green : red } Fire Spread diff --git a/aurora/slashcommands/town.ts b/aurora/slashcommands/town.ts index 1796d6a8..b47d4916 100644 --- a/aurora/slashcommands/town.ts +++ b/aurora/slashcommands/town.ts @@ -319,10 +319,11 @@ export default { // //#endregion } - // const [green, red] = ["<:green_tick:1036290473708495028>", "<:red_tick:1036290475012915270>"] - // townEmbed.addFields(embedField("Flags", ` - // ${town.flags.pvp ? green : red } PVP - // `)) + const [green, red] = ["<:green_tick:1036290473708495028>", "<:red_tick:1036290475012915270>"] + townEmbed.addFields(embedField("Flags", ` + ${town.flags.pvp ? green : red } PVP + ${town.flags.public ? green : red } Public + `)) // ${town.flags.mobs ? green : red } Mobs // ${town.flags.public ? green : red } Public diff --git a/bun.lockb b/bun.lockb index 9c7a54e13ba25dad9a230d88e7edc0226fa6b7f0..48560730d7aabc64b6cf9c25e55e7e8e65ffbda9 100644 GIT binary patch delta 140 zcmV;70CWH7=LzWN36L%zrznqHyjX%x@3Bkq(y|>G52#1^9HMvRJrCKE)B+3mo@DQ-yu}r+W4;q0