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