예제 #1
0
 public function onCommandReceived(CommandEvent $event)
 {
     $command = $event->getCommand();
     $data = $event->getData();
     $command->setChannel($data->channel);
     $command->setUser($data->user);
     $command->execute($data, $event->getContext());
 }