Skip to content

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahbazCoder1 committed Jul 22, 2024
1 parent a0784e8 commit 61cab9e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Run Telegram Bot
env:
TOKEN: ${{ secrets.token }}
USERNAME: ${{ secrets.username }}
API_KEY: ${{ secrets.api_key }}
YOUTUBE_API: ${{ secrets.youtube_api }}
SEND_EMAIL: ${{ secrets.send_email }}
PASSWORD: ${{ secrets.password }}
RECEIVER_EMAIL: ${{ secrets.receiver_email }}
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ secrets.USERNAME }}
API_KEY: ${{ secrets.API_KEY }}
YOUTUBE_API: ${{ secrets.YOUTUBE_API }}
SEND_EMAIL: ${{ secrets.SEND_EMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
RECEIVER_EMAIL: ${{ secrets.RECEIVER_EMAIL }}
run: python "Telegram Bot/quizly_telegram_bot.py"
6 changes: 3 additions & 3 deletions Telegram Bot/feedback_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
import os

def send_feedback_email(feedback_data):
from_email = os.getenv('send_email')
from_password = os.getenv('password')
to_email = os.getenv('receiver_email')
from_email = os.getenv('SEND_EMAIL')
from_password = os.getenv('PASSWORD')
to_email = os.getenv('RECEIVER_EMAIL')
utc_date = feedback_data['date']
ist_timezone = pytz.timezone('Asia/Kolkata')
ist_date = utc_date.astimezone(ist_timezone)
Expand Down
8 changes: 4 additions & 4 deletions Telegram Bot/quizly_telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from feedback_email import send_feedback_email


TOKEN: Final = os.getenv('token')
BOT_USERNAME: Final = os.getenv('username')
GOOGLE_API_KEY: Final = os.getenv('api_key')
youtube_api_key: Final = os.getenv('youtube_api')
TOKEN: Final = os.getenv('TOKEN')
BOT_USERNAME: Final = os.getenv('USERNAME')
GOOGLE_API_KEY: Final = os.getenv('API_KEY')
youtube_api_key: Final = os.getenv('YOUTUBE_API')
user_record = {}

print(" ____ _ \n / __ \\ (_)\n| | | | _ _ _ ____\n| | | || | | || ||_ /\n| |__| || |_| || | / /_\n \\___\\_\\ \\__,_||_|/____|\n ____ _ \n| _ \\ | | \n| |_) | ___ | |_ \n| _ < / _ \\ | __|\n| |_) || (_) || |_ \n|____/ \\___/ \\__|")
Expand Down

0 comments on commit 61cab9e

Please sign in to comment.