Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

nilsding/twittbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twittbot Gem Version Inline docs

Twittbot is the next generation of my old Twitter bot, twittbot-nd.

Installation

Installation is just as easy as installing the Rubygem:

$ gem install twittbot

Usage

Create a new bot:

$ twittbot new bot-name
$ cd bot-name

Authorize with Twitter:

$ twittbot auth

Add yourself as a botadmin:

$ twittbot add-admin nilsding

Add a template, such as for a simple reply bot:

$ twittbot generate random-reply

random-reply is a template that accepts a configuration. You can configure it by editing ./etc/random_reply.yml with a text editor of your choice. And, if you want to, you can also change its behaviour by editing ./lib/random_reply.rb.

To list available templates, try this:

$ twittbot list-templates

Finally, run the bot:

$ twittbot start