node-event-bot/server/commands/echo.ts
mightypanders 9df18575fd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
implement auto repeating events
2022-04-12 22:39:47 +02:00

19 lines
422 B
TypeScript

import { Command } from '../structures/command'
import { RunOptions } from '../types/commandTypes'
export default new Command({
name: 'echo',
description: 'Echoes a text',
options: [
{
name: 'echo',
description: 'The text to echo',
type: 'STRING',
required: true
}
],
run: async (interaction: RunOptions) => {
console.log('echo called')
interaction.interaction.reply(interaction.toString())
}
})