ika_bot/lib/commands/lesson_command.rb

20 lines
382 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!")
2025-08-23 14:38:42 -04:00
2025-08-15 17:03:12 -04:00
ika.start_lesson! message
end
end
end