人力検索はてな
モバイル版を表示しています。PC版はこちら
i-mobile

http://www.kent-web.com/pubc/book/test/uploader/uploader.cgi?mode=downld&no=5004

このファイル(好感度機能付きEasyBotter.php)に

//■■特定の人には別パターン■■
$userName = (string)$reply->user->screen_name;
switch(true){
case stristr($userName, "bot")://botと名のつくアカウント名に対して
$replyPatternFile = "bot_pattern.php";//bot_pattern.phpを適用する
$this->_replyPatternData[$replyPatternFile] = $this->readPatternFile($replyPatternFile);
break;
case $userName == "abcd"://abcdというアカウント名に対して
case $userName == "efgh"://efghというアカウント名に対して
$replyPatternFile = "xxx_pattern.php";//xxx_pattern.phpを適用する
$this->_replyPatternData[$replyPatternFile] = $this->readPatternFile($replyPatternFile);
break;
default://それ以外
$replyPatternFile = $org_repfile;//デフォルトのパターンファイル名
}


これを組み込みたいのですが、http://www26.atwiki.jp/easybotter_wiki/pages/29.html の通りにやってみると好感度機能が使えなくなってしまいます。
また、時間別・好感度別のファイルも同時に組み込みたいのですがどのように記述すればよろしいでしょうか。
どのようにしたらよいか、ご教示下さい。よろしくお願い致します。

●質問者: DeadmansQ
●カテゴリ:インターネット ウェブ制作
○ 状態 :キャンセル
└ 回答数 : 0/0件

回答がありません
関連質問

●質問をもっと探す●



0.人力検索はてなトップ
8.このページを友達に紹介
9.このページの先頭へ
対応機種一覧
お問い合わせ
ヘルプ/お知らせ
ログイン
無料ユーザー登録
はてなトップ