- 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()
|
||||
max_id = DBwork.get_last_id(cur)
|
||||
for id in range(1, max_id + 1):
|
||||
user = DBwork.get_user(id, cur)
|
||||
downloadImage(currentDay, user)
|
||||
# chat_id = DBwork.get_user(id, cur)
|
||||
# image_URL(currentDay, user)
|
||||
# await bot.send_photo(chat_id = chat_id, photo = image_URL
|
||||
DBwork.close_connection(conn, cur)
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
from decouple import config
|
||||
|
||||
|
||||
IS_address = config('IS_address')
|
||||
acc_key = config('acc_key')
|
||||
sec_key = config('sec_key')
|
||||
db_name = config('db_name')
|
||||
postgres_user = config('postgres_user')
|
||||
postgres_password = config('postgres_password')
|
||||
host_name = config('host_name')
|
||||
port = config('port')
|
||||
bucket_name = config('bucket_name')
|
||||
IS_address = config('IS_ADDRESS')
|
||||
acc_key = config('ACC_KEY')
|
||||
sec_key = config('SEC_KEY')
|
||||
db_name = config('DB_NAME')
|
||||
postgres_user = config('POSTGRES_USER')
|
||||
postgres_password = config('POSTGRES_PASSWORD')
|
||||
host_name = config('HOST_NAME')
|
||||
port = config('PORT')
|
||||
bucket_name = config('BUCKET_NAME')
|
||||
|
||||
|
||||
TG_TOKEN = config('TG_TOKEN')
|
||||
|
||||
Reference in New Issue
Block a user