-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use filename or file properties in tweet text? #8
Comments
Ok, very quick and dirty: Replace line 11 of bot/status.py with:
That should be enough. Mind that this works for Linux and (I think) Mac, I think Windows uses \ to separate folders, so you should replace the '/' with '' for Windows, I think. Also, this also tweets the file extension. If you don't want to do that, you could do something like
But I didn't test that. I'll leave this open to include it in the options and such in the future. |
awesome, ill try it out, thanks! |
@MrCarter13 let me know if it worked! thanks for the contribution :) |
okay i tried out your solution and it sort of works, the image is still tweeted properly, but the filename seems to be randomly chosen independently of the image. For example if the bot tweets ImageA.jpg the filename included in the tweet text might be ImageB.jpg Another quick question: how would i go about including a url before the filename? thanks for your feedback :) |
uh. that's weird. i'll look into it. if you want to include the same url in every one of your posts, look at the "tweet text" option. if you want the url to change depending on the image, that's... not possible right now, unless not in a non-hackish way. |
Somehow be able to include a filename in the tweet text, which would allow for sourcing images directly in the tweet.
The text was updated successfully, but these errors were encountered: