gwei-alert-bot/src/commands/alert.ts

16 lines
575 B
TypeScript

import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
import { handleGasAlertCommand, handleGasCommand, handleGasPendingCommand } from '../handlers';
module.exports = {
data: new SlashCommandBuilder()
.setName('alert')
.setDescription('Set gas alert for gwei threshold')
.addStringOption(option =>
option.setName('gwei')
.setDescription('gwei threshold')
.setRequired(true)),
async execute(interaction: ChatInputCommandInteraction) {
return await handleGasAlertCommand(interaction);
}
}