예제 #1
0
 public function loadSettings()
 {
     $this->setCommand(['trigger' => 'cmd', 'action' => 'trigger', 'arguments' => -1, 'permit' => true]);
     $this->setCommand(['trigger' => 'bye', 'action' => 'quit', 'permit' => true]);
     $this->setCommand(['trigger' => 'restart', 'action' => 'restart', 'permit' => true]);
     $this->setCommand(['arguments' => -1, 'trigger' => 'say', 'action' => 'say', 'permit' => true]);
     $this->setCommand(['arguments' => 1, 'trigger' => 'part', 'action' => 'part', 'help' => 'Type "!part #<channel>" for part a channel.', 'permit' => true]);
     $this->setCommand(['arguments' => 1, 'trigger' => 'join', 'action' => 'join', 'help' => 'Type "!join #<channel>" for join to channel.', 'permit' => true]);
     $this->setCommand(['arguments' => -1, 'trigger' => 'help', 'action' => 'help', 'help' => 'Type "!help" for help or "!help <command>" for help for command.', 'permit' => false]);
     parent::loadSettings($this);
 }
예제 #2
0
파일: Fun.php 프로젝트: xandros15/Saya-Bot
 public function loadSettings()
 {
     libxml_set_streams_context($this->ctx);
     libxml_use_internal_errors(true);
     $this->setCommand(['trigger' => 'c', 'action' => 'c', 'arguments' => -1, 'determiter' => ',', 'help' => 'Randomize arguments. Determiter is set as ",". Example: "!c apple, banana, oranges".']);
     $this->setCommand(['trigger' => 'iroha', 'action' => 'iroha', 'arguments' => 1, 'channels' => ['#bodzio', '#xandros'], 'help' => 'Sending a link to episode. Just type "!iroha <nr of episode>" to get link.']);
     $this->setCommand(['trigger' => 'kier', 'channels' => ['#bodzio', '#xandros'], 'action' => 'kier']);
     $this->setCommand(['trigger' => 'random', 'action' => 'random', 'arguments' => -1, 'help' => '"!random" default search loli, but you can find anything you want. ' . 'You can change rating by adding safe|nsfw|ques to arguments and change ' . 'image server by adding yan (yande.re).', 'ban' => ['nick' => 'Thebassa']]);
     $this->setCommand(['trigger' => 'biba', 'reply' => 'Biba dance: https://www.youtube.com/watch?v=kpJcgkEdMRg']);
     $this->setCommand(['trigger' => 'hubi1', 'channels' => ['#bodzio'], 'reply' => '[10:31pm] <+hubi1> k-on byl fajny']);
     $this->setCommand(['trigger' => 'maido', 'reply' => 'Maido dance: https://www.youtube.com/watch?v=a-7_XdPktgc']);
     $this->setCommand(['trigger' => 'mikuluka', 'reply' => 'https://www.youtube.com/watch?v=ZllY2wBLYN4']);
     $this->setCommand(['trigger' => 'okusama04', 'channels' => ['#bodzio'], 'notice' => 'prosze: https://mega.co.nz/#!HplkQaCZ!gTgt_BjzpEoUe6-5_ObXke_PDM-S9Me6xz8aW_cVD0A']);
     $this->setCommand(['trigger' => 'nonnon11', 'channels' => ['#bodzio'], 'notice' => 'prosze: https://mega.nz/#!qolFGZpb!T3Ic5DDJKOy4TBp1xHnDtT4T9ctzianr-ofW_EZ9eT0']);
     $this->setCommand(['trigger' => 'rolypoly', 'reply' => 'Roly-poly: http://www.youtube.com/watch?v=3Xolk2cFzlo']);
     $this->setCommand(['trigger' => 'weaboo', 'reply' => 'Weaboo song: https://www.youtube.com/watch?v=TBfWKmRFTjM']);
     $this->setCommand(['trigger' => 'xandros', 'reply' => '[9:58pm] <Inkwizytor> xandros, kup sobie slownik']);
     $this->setCommand(['trigger' => 'cycki', 'action' => 'cycki']);
     parent::loadSettings();
 }
예제 #3
0
파일: Thpl.php 프로젝트: xandros15/Saya-Bot
 public function loadSettings()
 {
     $this->setCommand(['trigger' => 'thsp', 'help' => 'I know some spell cards from touhou. Type "!thsp <game number or ' . 'short name>[/ or :]<number of spell>" to get some information about it. ' . '"!thsp list" list all cards', 'arguments' => 1, 'channels' => ['#touhoupl', '#xandros'], 'action' => 'action']);
     parent::loadSettings();
 }
예제 #4
0
 public function loadSettings()
 {
     $this->setCommand(['trigger' => 'unit', 'action' => 'unit', 'determiter' => ' ', 'arguments' => 1, 'channels' => ['#aigis'], 'help' => 'Type "!unit {unit_name}" to get link to information about this unit.']);
     $this->setCommand(['trigger' => 'setup', 'action' => 'setup', 'arguments' => 0, 'channels' => ['#aigis'], 'permit' => true]);
     parent::loadSettings();
 }