Skip to content

Commit

Permalink
Fix gita.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShubhendra committed Jan 25, 2021
1 parent 760efd0 commit a74f2d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions telebot/plugins/gita.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ async def gita(event):
"""To get a specific verse from a specific chapter in English."""
if CLIENT_ID is None or CLIENT_SECRET is None:
await event.edit(
event,
"`Please add required GITA_CLIENT_SECRET and GITA_CLIENT_ID env var`",
10,
"`Please add required GITA_CLIENT_SECRET and GITA_CLIENT_ID env var`"
)
return
pygita.auth(CLIENT_ID, CLIENT_SECRET)
Expand All @@ -37,9 +35,7 @@ async def gita_hindi(event):
"""To get a specific verse from a specific chapter in Hindi."""
if CLIENT_ID is None or CLIENT_SECRET is None:
await event.edit(
event,
"`Please add required GITA_CLIENT_SECRET and GITA_CLIENT_ID env var`",
10,
"`Please add required GITA_CLIENT_SECRET and GITA_CLIENT_ID env var`"
)
return
pygita.auth(CLIENT_ID, CLIENT_SECRET)
Expand Down

0 comments on commit a74f2d1

Please sign in to comment.