コード例 #1
0
ファイル: start.php プロジェクト: jdiez17/Bot-Factory
<?php

include 'config.php';
include 'lib.php';
include 'bots.php';
BotLogger::write_log(' --- starting --- ');
$bot = new Ebcari();
$bot = new NavarroCabreado();
$bot = new FailBN();
$bot = new EgoBN();
$bot = new EbcariSevikunTeQuiero();
BotLogger::write_log(" --- goodbye! ({$GLOBALS['cache']['sqlqueries']} queries) --- ");
コード例 #2
0
ファイル: lib.php プロジェクト: jdiez17/Bot-Factory
 function __post($user, $password, $id, $text)
 {
     $res = BotUtils::post($user, $password, $id, $text);
     if (BotUtils::is_successful($res)) {
         BotUtils::save_id($this->datasource, $this->user, $id);
     }
     BotLogger::write_log("{$user}: twittd: {$text}");
 }