retweet-bot
retweet-bot copied to clipboard
Where's the config file?
Not present on project.
Regards.
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.
Here it is: config.sample https://github.com/basti2342/retweet-bot/commit/1c4621f8410ff210f89c804356295cd3700edda6#diff-755a5b26e014be32395d2ff7f722e183
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.
https://github.com/MChambers1992/retweet-bot
@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
fixed it by creating the hashes directory