ika_bot/lib/commands/lesson_command.rb

19 lines
381 B
Ruby
Raw Normal View History

2025-08-15 17:03:12 -04:00
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