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

19 lines
405 B
Ruby

module Commands
class StopLessonCommand < Command
def self.command_string
"stoplesson"
end
def self.description
"Stops the current lesson, if one is running"
end
def execute
return message.respond("There's no lesson running") unless ika.current_lesson_running?
message.respond("Ending the current lesson!")
ika.stop_current_lesson!
end
end
end