Skip to content

angristan/twitter-pic-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Picture Bot

A very simple bot that tweets random pictures from a directory

Installation

$ git clone https://github.com/angristan/twitter-pic-bot
$ cd twitter-pic-bot
$ bundle install

Configuration

Create an app on app.twitter.con and get your credentials.

Copy .config-sample.rb to .config.rb and fill it with these credentials.

Usage

$ ruby bot.rb

It will tweet a random picture ({jpg,jpeg,png,gif}) from the ./media/ folder.

You can put this in a cron or modify the script to use sleep() in an infinite loop.

About

A very simple Ruby bot that tweets random pictures from a directory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages