Main commit

This commit is contained in:
2026-01-05 14:36:22 -03:00
commit ac90a9628d
9 changed files with 283 additions and 0 deletions

14
src/commands/echo.rb Normal file
View File

@@ -0,0 +1,14 @@
module Commands
module Echo
extend self
def register(bot, _db)
bot.register_application_command(:echo, 'Repeats what you say', server_id: ENV['TEST_SERVER_ID']) do |cmd|
cmd.string('message', 'The text you want the bot to repeat', required: true)
end
bot.application_command(:echo) do |event|
event.respond(content: "You said: #{event.options['message']}")
end
end
end
end