mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-23 13:51:09 -05:00
picture shortcut
This commit is contained in:
6
lib/twitter_ebooks/bot.rb
Normal file → Executable file
6
lib/twitter_ebooks/bot.rb
Normal file → Executable file
@@ -163,6 +163,12 @@ module Ebooks
|
||||
log "Tweeting #{args.inspect}"
|
||||
@twitter.update(*args)
|
||||
end
|
||||
|
||||
# could easily just be *args however the separation keeps it clean.
|
||||
def pictweet(txt, pic, *args)
|
||||
log "Tweeting #{txt.inspect} - #{pic} #{args}"
|
||||
@twitter.update_with_media(txt, File.new(pic), *args)
|
||||
end
|
||||
|
||||
def on_startup(&b); @on_startup = b; end
|
||||
def on_follow(&b); @on_follow = b; end
|
||||
|
||||
Reference in New Issue
Block a user