僕もtwitterを始めてからもうすぐ2年になる。情報系の大学に入ってから関わりのある人のtwitter-erが増えたのでどんどんのめり込んで行った。まあろくすっぽ大学生活をエンジョイもせずにtwitter充していたわけで、友人からの遊びの誘いを断ってまでtwitterをやってるような廃人なわけだ。そんな廃人になってくると、そろそろtwitter上にも旧知の仲というか、移り変わるタイムラインでも昔からの顔なじみみたいな人が結構でてくる。昔よく見たのに最近見ないなと思っていたらアカウントが消えていたり、wassrで偶然見つけたり、まあそんなことがあったりする。 僕のtwitter古馴染みの中に@donsukeと@ha_maがいる。@donsukeは今でこそ猫のアイコンだが、最初はマントを着ている熊のぬいぐるみのアイコンで、「〜なのだ」という語尾をつけるなどの子供っぽいところがあって、なかなか
今回は自分のじゃなくて 人様がお作りになった bot のご紹介。 うちの時報 bot は Twitter用時報botを作ったよ – 頭ん中 時報 (jihou) on Twitter もともとは単に「いま何時か」を知らせるためのものなんだけど、 フォローしてくれてるたくさんの人から 「タイムラインを遡るときに、区切り線になって助かる」 という声もいただいている。なるほど。 その目的でつくられた、素晴らしいアイデアの bot がこちら。 切り取り線(時報) (kiri_tori) on Twitter 上掲のリンクから実物を見ていただくのがいいと思うんだけど、 時報のタイミングで切り取り線がツイートされる。 これをフォローすると タイムライン上の1時間ごとにその切り取り線が現れることになるから ここからここまでが1時間というのが視覚的にわかりやすい。 何かかわいいし。 さらにもっと細かく区切
realtimeweb.jp 2020 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
始めに 最近ニュースで取り上げられるほど隆盛を極めている『twitter』。 twitterの紹介は割愛するが、その中でプログラムで動いている『bot』と言うものがある。 例えば、@buzztterや@bombtterなどがある。 他にもおもしろ所として@wakatterや@ha_ru_kaなんて言うユーザーの発言にをうまく利用したものもある。 地震速報や天気、料理のレシピ、人工知能を使ったものなど枚挙にいとまがない。 これらのbotの制作はプログラム初心者にとってハードルの高いものだと思う。 そこで今回、プログラミング言語の一つであるphpを使って作る方法をドドーンと公開する事にした。 僕も@dq_pencilや@nyafuuu、そして@nanikiruといくつか作った。 これらに使われているテクニックや関数なんかを公開しようと言う事ね。 僕が作ったボットについて詳しくはこちらへ。他の参
初めまして。@返信でなく純粋に、TL上の発言、単語に反応して発言するものを作りました。 $username = "ユーザーネーム"; $password = "パスワード"; //最新のTLのステータスIDを保存しておくファイルです。パーミッションは書き込み可に。 $filename = "./tmp/last.txt"; //開いて取得 $fp = @fopen($filename,'rb') or die("ファイルが開けません"); flock($fp, LOCK_EX); $line = fgets($fp, 64); fclose($fp); //自分がフォローしているfriendsのリストです。つまりTL $host = "http://twitter.com/statuses/friends_timeline.xml"; //ユーザーの発言一覧 //一番最初の時やファイルが壊
Twitterのおかげで、それまではごく一部の人しか知らなかったbotというものが、だいぶん身近で親しみやすいものになったと思うんだけど、 こうなったらもっと気軽に誰でもbotを作れるようになったら楽しいんじゃないか。プログラミングができない人でも一人一botくらい持つ勢いで。 ということでこの記事を書いてみました。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く