fix some formatting

This commit is contained in:
MrTuxedo 2023-04-21 17:18:31 -07:00
parent 8b2ae82cfd
commit 8b06d7dbdf
3 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ const createGasAlertChecker = (client: DiscordClient) =>
.setTitle('Gas price alert!')
.setDescription(`<@${gasAlert.userId}>!
Gas prices have fallen below your alert threshold of ${gasAlert.threshold} Gwei:
${gasPrices.fast} 🚶 ${gasPrices.average} 🐢 ${gasPrices.slow}`)
${gasPrices.fast} 🚶 ${gasPrices.average} 🐢 ${gasPrices.slow}`)
.setColor('#FF8C00')
],
target: user

View File

@ -16,8 +16,7 @@ const handleGasCommand = async (interaction: ChatInputCommandInteraction): Promi
const embed = new EmbedBuilder()
.setColor('#0099ff')
.setTitle('Current Gas Prices')
.setDescription(`${gasPrices.fast} ⦚⦚ 🚶 ${gasPrices.average} ⦚⦚ 🐢 ${gasPrices.slow}`)
.setDescription(`${gasPrices.fast} ⦚⦚🚶 ${gasPrices.average} ⦚⦚ 🐢 ${gasPrices.slow}`);
await interaction.reply({ embeds: [embed] });
} else {
console.log(`Error fetching gas prices!`);

View File

@ -27,7 +27,7 @@ const doAlerts = createGasAlertChecker(client);
const setDiscordStatus = async ({ average, fast, slow }: GasPrices) => {
if (client.user) {
client.user.setActivity(
`${fast} 🚶${average} ⦚ 🐢${slow}`
` ${fast}🚶 ${average} ⦚ 🐢 ${slow}`
, { type: ActivityType.Watching });
}
}