したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |
レス数が900を超えています。1000を超えると投稿できなくなるよ。

TwitterBotPHP質問スレ

341名無しさん:2010/06/17(木) 03:34:11
こんばんは。
最初はちゃんと自動フォロー&フォローしたらリプライ返してたのに、いきなりしなくなりました。

easybotter内を少し書き換えてます。

//自動フォロー返し
function autoFollow(){
$response = $this->getFollowers();
$followList = array();
foreach($response as $user){
$follow = (string)$user->following;
if($follow == "false" && $user->protected == "false"){
$followList[] = (string)$user->screen_name;
}
}
foreach($followList as $screen_name){
//■■xxxはフォロー返ししない■■
if(!preg_match("@bot$@i",$screen_name)){
$response = $this->followUser($screen_name);
}
}
//■■フォローした時にリプライを送る■■
foreach($followList as $rscreen_name){
$msggg=array("リプライ1","リプライ2");
$key = array_rand($msg);
$post = $msg[$key];
$value = array("status"=>"@{$rscreen_name} $post");
$response = $this->setUpdate($value);
$result = $this->showResult($response);
$results[] = $result;
}
}

どこかおかしいところはありますか?
ちなみに、きちんとフォローしたらリプライのリプライはします。
リプライはするけどフォローはしない状態です。


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板