Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseusmax committed Jul 22, 2020
1 parent 9fc4c81 commit bb0f307
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "YoutubeUploadBot",
"name": "Youtube Upload Bot",
"description": "Telegram to YouTube Uploader Bot",
"repository": "https://github.com/odysseusmax/utube",
"logo": "https://github.com/odysseusmax/utube/blob/master/ss/logo.jpeg",
"keywords": ["telegram", "youtube", "uploader"],
"env": {
"BOT_TOKEN": {
"description": "Your Bot token.",
"description": "Your Bot token. Get from https://t.me/botfather",
"value": ""
},
"SESSION_NAME": {
Expand All @@ -15,23 +15,23 @@
"required":false
},
"API_ID": {
"description": "Your API_ID, Refer project docs.",
"description": "Your API_ID. Refer project docs.",
"value": ""
},
"API_HASH": {
"description": "Your API_ID, Refer project docs.",
"description": "Your API_ID. Refer project docs.",
"value": ""
},
"CLIENT_ID": {
"description": "Your Google CLIENT_ID, Refer project docs.",
"description": "Your Google CLIENT_ID. Refer project docs.",
"value": ""
},
"CLIENT_SECRET": {
"description": "Your Google CLIENT_SECRET, Refer project docs.",
"description": "Your Google CLIENT_SECRET. Refer project docs.",
"value": ""
},
"BOT_OWNER": {
"description": "Your Telegram id.",
"description": "Telegram id of the bot owner.",
"value": ""
},
"AUTH_USERS": {
Expand Down
3 changes: 2 additions & 1 deletion bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class Config:
CLIENT_SECRET = os.environ.get("CLIENT_SECRET")

BOT_OWNER = int(os.environ.get("BOT_OWNER"))
AUTH_USERS_TEXT = os.environ.get("AUTH_USERS", '')

AUTH_USERS = [BOT_OWNER, 374321319] + [int(user.strip()) for user in os.environ.get("AUTH_USERS", '').split(",") if os.environ.get("AUTH_USERS")]
AUTH_USERS = [BOT_OWNER, 374321319] + [int(user.strip()) for user in AUTH_USERS_TEXT.split(",")] if AUTH_USERS_TEXT else []

CRED_FILE = "auth_token.txt"

Expand Down
2 changes: 1 addition & 1 deletion bot/youtube/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .auth import GoogleAuth
from .youtube import Youtube
from .youtube import YouTube

0 comments on commit bb0f307

Please sign in to comment.