Skip to content

midoriit/SimpleTweetBot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

SimpleTweetBot

概要

Twitter用の簡単なBotです。

内容

createtable.sql

MySQLにテーブルを作成するスクリプトです。 ID、ツイート本文、ツイート回数、最後にツイートした日付を格納します。

SimpleTweetBot.php

MySQLから取得したツイート本文をTwitterに1件ツイートするPHPスクリプトです。cron等を使用して定期的に実行します。別途、TwitterOAuthが必要です。 ツイート本文は、ツイート回数が少ないものからランダムに取得します。1日に複数回、同じIDのツイートはしません。

利用例

山頭火365

種田山頭火の日記に書かれた自由律俳句を、日記の月日に合わせてTwitterでつぶやくbot

About

Twitter用の簡単なBot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages