fix some formatting

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

View File

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

View File

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

View File

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