ika_bot/lib/commands/lesson_command.rb
2025-08-16 10:15:47 -04:00

19 lines
381 B
Ruby

module Commands
class LessonCommand < Command
def self.command_string
"lesson"
end
def self.description
"Starts timers for a lesson"
end
def execute
return message.respond("There's already a lesson running!") if ika.current_lesson_running?
message.respond("Starting a lesson now!")
ika.start_lesson! message
end
end
end