ika_bot/lib/commands/stop_lesson_command.rb

19 lines
405 B
Ruby
Raw Normal View History

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