Closed tE3m closed 5 years ago
I'm not sure is a good idea insert another settings for the user. Normaly a script is executed in the main folder.
Anyway, I'm happy you want to collab! :) Do the following fix and I'll accept your pr.
Replace db variable with settings_path and set it default as
settings_path = './
Fix the readme:
{
"telegram_token": "xxxx",
"instapy_folder": "/home/xxxx/GitHub/instapy_bot",
"allowed_id": [ "chat_id from GiveChatId_Bot", "342342" ]
}
If you want to execute the script by another folder that main edit the following line in main.py
settings_path = '/path/to/Telegram-InstaPy-Scheduling/'
I could also only leave this feature in my fork of your repo if you don't think it's relevant for all users.
-Added variable
db
to fix https://github.com/Tkd-Alex/Telegram-InstaPy-Scheduling/issues/17#issue-388376628 inmain.py
(it wasn't possible to create it inside ofsetting.json
becausemain.py
first has to know the path tosettings.json
) -Updatedreadme.md