Tkd-Alex / Telegram-InstaPy-Scheduling

A Telegram bot for scheduling InstaPy
152 stars 38 forks source link

Added ability to run main.py without being in the repo's folder, updated readme.md and changed a false information in readme.md #30

Closed tE3m closed 5 years ago

tE3m commented 5 years ago

-Added variable db to fix https://github.com/Tkd-Alex/Telegram-InstaPy-Scheduling/issues/17#issue-388376628 in main.py (it wasn't possible to create it inside of setting.json because main.py first has to know the path to settings.json) -Updated readme.md

  1. Added description for function above
  2. Changed false order at /set
Tkd-Alex commented 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.

  1. Populate settings.json with your data.
    {
    "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/'

tE3m commented 5 years ago

I could also only leave this feature in my fork of your repo if you don't think it's relevant for all users.