mirror of
https://codeberg.org/JasterV/YoutuBot.git
synced 2026-04-26 18:40:02 +00:00
Update app.py
This commit is contained in:
parent
d428cdf140
commit
5b72e76bfb
1 changed files with 1 additions and 8 deletions
9
app.py
9
app.py
|
|
@ -37,15 +37,8 @@ def download_song(message):
|
||||||
return filename
|
return filename
|
||||||
|
|
||||||
|
|
||||||
@server.route("/")
|
|
||||||
def webhook():
|
|
||||||
bot.remove_webhook()
|
|
||||||
bot.set_webhook(url='https://cryptic-crag-46329.herokuapp.com/' + bot_token)
|
|
||||||
return "!", 200
|
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
bot.polling()
|
bot.polling()
|
||||||
except Exception:
|
except Exception:
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue