Skip to content

A module based bot written in php that takes commands from a twitter account

Notifications You must be signed in to change notification settings

kokarn/php-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-twitter-bot

A module based bot written in php that takes commands from a twitter account

Usage

  1. Create a twitter account
  2. Set up the twitter account and an email in index.php
  3. Add something like this to your cron
    * *     * * * root lynx -dump http://www.example.com/path/to/bot >/dev/null 2>&1
  4. Tweet the command you want to run separated by a space for additional arguments

Extending

It's really simple to extend it, just add a new class into modules and then call that from twitter.

Todo

  • Force specific functions to be present in the modules by class inheritance
  • Better syntax for commands
  • Extend command functionality to allow commands over multiple tweets

Ideas for extensions

  • PreDB lookup
  • People lookup
  • Ping function
  • Whatever seems like a fun idea

About

A module based bot written in php that takes commands from a twitter account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages