Open psegovias opened 7 years ago
Woops, yes, you are right. The last pull request removed it without mentioning and I did not pay attention. Will fix it within the next days.
Missing 1 config argument inside [settings]
number_of_rt:
Look here: https://github.com/jeromecc/doctoctocbot/blob/master/config.sample
Fixed in #19 if @basti2342 wants to merge it.
Best practice with open source projects on public repositories would be to put keys & secrets in environment variables & get them with os.getenv(key, default=None)
because one day or the other the secrets will end up being published by mistake on the public git :smile:
@jeromecc absolutely right, I use a different config style in my fork which avoids this problem by including sample files. If anybody is looking to use this bot I would recommend my fork over this as it has many more features.
@MChambers1992 when running the bot for the first time it gives the following errors
WARNING:root:No savepoint found. Bot is now searching for results
(2019-04-25 01:07:25) b'voucher_swap': b'#pihole is amazing!'
ERROR:root:[{'code': 327, 'message': 'You have already retweeted this Tweet.'}]
(2019-04-25 01:43:43) b'voucher_swap': b"#pivpn and #pihole make a great combo for when you're on the go"
ERROR:root:[{'code': 327, 'message': 'You have already retweeted this Tweet.'}]
Finished. 0 retweeted, 0 followed, 2 errors.
Traceback (most recent call last):
File "src/main.py", line 17, in
retweet_core.retweet(API, CONFIG.query_objects)
File "/home/mdwoolweaver/retweet-bot/src/retweet_core.py", line 108, in retweet
with open(get_hashtag_file_id(query_object['search_query']), "w") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/mdwoolweaver/retweet-bot/hashes/last_id_hashtag_ff0736de86fa67e7d848cd84d23092ea'
fixed it by creating the hashes
directory
Not present on project.
Regards.