-
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
allow_repeat_after and tweet_post_number not working #12
Comments
Will look into this. Noticed allow_repeat_after not working on my own bot today. I'm planning on moving the stupid log file which never caused anything else but problems to a proper table on a database, that should simplify things. I'm currently with a lot of work and working on another project too (joaquinlpereyra/ludema), so I don't promise any quick fix. |
I honestly wouldn't care how long the fix would take. I currently have mine off till i get atleast more than 500 pics and the chance for it to repost is smaller then. Also something else, I've heard you can put the bot on heroku and let it run from there but i've been trying to get it on there for the past 3 days without success. What do you use to host your bot? |
@HuskerDoggo Where have you heard that? I've never tried anything fancier than cron on my desktop computer (that's how mine has always run), but I'll be glad to hear you configured it successfully on Heroku. I don't see why it wouldn't work. What issues are you facing? |
@joaquinlpereyra i read that here https://www.reddit.com/r/learnprogramming/comments/27af2e/hosting_a_twitter_bot/. (it doesnt say anything about image bot but its worth the try) |
@joaquinlpereyra i gave up on putting it on heroku cause it seems like it doesn't work. it also says it installs python 2.7.12 and it doesnt work on that. luckily i am able to use microsoft azure for free but i have not yet figured out how it works. |
@HuskerDoggo The bot will only work with Python3. I'm sorry I can't provide any more info about this, as I said, I've always just put it on my cron and that's it :) |
I came up with a fix for the image repeating bug. its nothing professional or anything but at least it works. I created a new file in /logs called "mediaLog" that only contains image paths. It is just so i can easier check if media was already tweeted.
The mediaLog fileis also added to the config.py & settings file just like the original log file:
And as last i modified the main script to check if it was already tweeted in itself rather than in status.py
For some reason there is also a line "tolerance = 0" in your main script that needs to be removed |
I've been having allow_repeat_after to 144, running every 30 min so should be not reposting the same image after 3 days but it still does.
Also I've had the tweet_post_number to False and tweet_this_text to nothing but when it tweets it would still do "No. " + str(post_number) + " " + raw_text
The text was updated successfully, but these errors were encountered: