- Implemented echo bot and ability to quickly modify bot commands
- reworked config to grab values from .env - Added a requirements file(with modules needed for bot to function) - Added a separate bot initialization file for simpler launching
This commit is contained in:
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
@ -40,7 +40,8 @@ def downloadForAll(currentDay):
|
|||||||
cur, conn = DBwork.set_connection()
|
cur, conn = DBwork.set_connection()
|
||||||
max_id = DBwork.get_last_id(cur)
|
max_id = DBwork.get_last_id(cur)
|
||||||
for id in range(1, max_id + 1):
|
for id in range(1, max_id + 1):
|
||||||
user = DBwork.get_user(id, cur)
|
# chat_id = DBwork.get_user(id, cur)
|
||||||
downloadImage(currentDay, user)
|
# image_URL(currentDay, user)
|
||||||
|
# await bot.send_photo(chat_id = chat_id, photo = image_URL
|
||||||
DBwork.close_connection(conn, cur)
|
DBwork.close_connection(conn, cur)
|
||||||
|
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
from decouple import config
|
from decouple import config
|
||||||
|
|
||||||
|
|
||||||
IS_address = config('IS_address')
|
IS_address = config('IS_ADDRESS')
|
||||||
acc_key = config('acc_key')
|
acc_key = config('ACC_KEY')
|
||||||
sec_key = config('sec_key')
|
sec_key = config('SEC_KEY')
|
||||||
db_name = config('db_name')
|
db_name = config('DB_NAME')
|
||||||
postgres_user = config('postgres_user')
|
postgres_user = config('POSTGRES_USER')
|
||||||
postgres_password = config('postgres_password')
|
postgres_password = config('POSTGRES_PASSWORD')
|
||||||
host_name = config('host_name')
|
host_name = config('HOST_NAME')
|
||||||
port = config('port')
|
port = config('PORT')
|
||||||
bucket_name = config('bucket_name')
|
bucket_name = config('BUCKET_NAME')
|
||||||
|
|
||||||
|
|
||||||
TG_TOKEN = config('TG_TOKEN')
|
TG_TOKEN = config('TG_TOKEN')
|
||||||
|
|||||||
Reference in New Issue
Block a user