19 lines
405 B
Ruby
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
|