retweet-bot icon indicating copy to clipboard operation
retweet-bot copied to clipboard

Where's the config file?

Open psegovias opened this issue 8 years ago • 7 comments

Not present on project.

Regards.

psegovias avatar Jun 01 '17 17:06 psegovias

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.

basti2342 avatar Jun 01 '17 20:06 basti2342

Here it is: config.sample https://github.com/basti2342/retweet-bot/commit/1c4621f8410ff210f89c804356295cd3700edda6#diff-755a5b26e014be32395d2ff7f722e183

jeromecc avatar Jul 03 '17 21:07 jeromecc

Missing 1 config argument inside [settings]

number_of_rt:

Look here: https://github.com/jeromecc/doctoctocbot/blob/master/config.sample

jeromecc avatar Jul 04 '17 01:07 jeromecc

Fixed in #19 if @basti2342 wants to merge it.

MChambers1992 avatar Jan 05 '18 16:01 MChambers1992

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 avatar Oct 15 '18 02:10 jeromecc

@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 avatar Nov 30 '18 14:11 MChambers1992

@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

mwoolweaver avatar Apr 25 '19 02:04 mwoolweaver