fix some formatting
This commit is contained in:
parent
8b2ae82cfd
commit
8b06d7dbdf
@ -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
|
||||
|
@ -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!`);
|
||||
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user