mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
Fix include issue
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,8 @@
|
|||||||
# configs
|
# configs
|
||||||
creds.ini
|
creds.ini
|
||||||
tg_settings.py
|
tg_settings.py
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
10
baraban.py
10
baraban.py
@@ -11,6 +11,11 @@ import telegram
|
|||||||
from telegram.error import NetworkError, Unauthorized
|
from telegram.error import NetworkError, Unauthorized
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import tg_settings
|
import tg_settings
|
||||||
|
try:
|
||||||
|
if os.environ["DRYRUN"]:
|
||||||
|
from dryrun import Perdoliq
|
||||||
|
except:
|
||||||
|
from main import Perdoliq
|
||||||
|
|
||||||
update_id = None
|
update_id = None
|
||||||
|
|
||||||
@@ -20,11 +25,6 @@ def main():
|
|||||||
global update_id
|
global update_id
|
||||||
# Telegram Bot Authorization Token
|
# Telegram Bot Authorization Token
|
||||||
TOKEN = tg_settings.TG_TOKEN
|
TOKEN = tg_settings.TG_TOKEN
|
||||||
try:
|
|
||||||
if os.environ["DRYRUN"]:
|
|
||||||
from dryrun import Perdoliq
|
|
||||||
except:
|
|
||||||
from main import Perdoliq
|
|
||||||
bot = telegram.Bot(TOKEN)
|
bot = telegram.Bot(TOKEN)
|
||||||
|
|
||||||
# get the first pending update_id,
|
# get the first pending update_id,
|
||||||
|
Reference in New Issue
Block a user