complex_bot.rb

Path: complex_bot.rb
Last Update: Tue May 15 12:16:04 -0400 2007

This Bot

This bot is a primo example of what you can do! It unfurls fury on your Facebook profile, so watch out! It is a complicated bot that does a lot to your Facebook profile. This is the bot I run on my Facebook. Yee-haw! In order for this bot to work properly, it needs some images to make your profile picture change randomly. Check out this line:

    fb.change_profile_picture random.file('profile_pictures/ducklings')

You‘ll have to change that to a path where there are images (JPGs) so it can choose one at random.

Running Your Bot

Like so:

    ruby complex_bot.rb

You can also see the parameters it accepts with:

    ruby complex_bot.rb -h

But here are some good examples to follow:

    ruby complex_bot.rb -e you@fb.edu --password=cool4
    ruby complex_bot.rb -e test@test.edu

Required files

optparse   facebook_bot/facebook_bot  

Constants

OPTIONS = { :email => nil, :password => nil, :debug => false   default options

[Validate]