Skip to content

Instantly share code, notes, and snippets.

@nbqx
Created October 20, 2011 09:57
Show Gist options
  • Save nbqx/1300798 to your computer and use it in GitHub Desktop.
Save nbqx/1300798 to your computer and use it in GitHub Desktop.
# -*- coding:utf-8 -*-
## is he/she a friend of mine plugin
Earthquake.init do
command :fom? do |m|
you, me = m[1], twitter.info['screen_name']
if twitter.friends?(you,me)
puts "@#{you} is your friend"
else
input(":user #{you}")
if confirm "@#{you} is NOT your friend, follow?"
input(":follow #{you}")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment