Skip to content

Commit

Permalink
Merge pull request #3 from AvinashReddy3108/sql-extended
Browse files Browse the repository at this point in the history
Okkkk
  • Loading branch information
prono69 authored Sep 23, 2019
2 parents a83f4ce + fe7924f commit c4d9bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions userbot/modules/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async def demote(dmod):
await dmod.edit("`Demoting...`")
rank = "admeme" # dummy rank, lol.
user = await get_user_from_event(dmod)
user = user[0]
if user:
pass
else:
Expand Down
4 changes: 2 additions & 2 deletions userbot/modules/scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,13 @@ async def text_to_speech(query):
except RuntimeError:
await query.edit('Error loading the languages dictionary.')
return
tts = gTTS(message, LANG)
tts = gTTS(message, TTS_LANG)
tts.save("k.mp3")
with open("k.mp3", "rb") as audio:
linelist = list(audio)
linecount = len(linelist)
if linecount == 1:
tts = gTTS(message, LANG)
tts = gTTS(message, TTS_LANG)
tts.save("k.mp3")
with open("k.mp3", "r"):
await query.client.send_file(query.chat_id, "k.mp3", voice_note=True)
Expand Down

0 comments on commit c4d9bfa

Please sign in to comment.