- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 
...
    if(empty($text)){
      $response = chr(0xF0) . chr(0x9F) . chr(0x98) . chr(0x95);
    }
    else{
      $textLines = explode("\n", $text);
      
      if(preg_match('/^\d+$/', $textLines[0])){
        $response = $this->doneTaskAction(
          (int) $textLines[0]
        );
      }
      else{
        $response = chr(0xF0) . chr(0x9F) . chr(0x98) . chr(0x95);
      }
    }
...
class dCommand extends doneCommand{
  protected $name = 'd';
  protected $description = 'Псевдоним команды /done';
  protected $usage = '/d <task_id>';
}
                                
 Follow us!
читал. новое слово выучил: "костылизировать"
ЗЫ смешно что CLI переизобретают. напоминает IRC.