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