Open GeekBrony opened 8 years ago
It looks like you're passing the wrong arguments to pictweet-- it should be of the form pictweet("text to accompany image", "path to image")
Is there a way to reply to the tweet with a picture?
The bot does't include have a function for that but you can do this instead:
id = twitter.upload(file).to_s
reply(tweet, 'Response text here', {media_ids: id})
"file" is an actual File object here.
I'm trying to make my bot send a picture every time it detects a predefined word, but every time I try to get it to do so, it gives me a TypeError with the context of
no implicit conversion of Symbol into Integer
. Now, I know programming, but I'm not so smart with Ruby since this is my introduction to it.Here's my code: http://pastebin.com/REQeQwrd
Here's the output:
Thanks for the help!