Spaces:
Runtime error
Runtime error
dopc
commited on
Commit
·
8b58292
1
Parent(s):
cf4e678
try timeout
Browse files- Dockerfile +1 -1
- etymbot.py +1 -1
Dockerfile
CHANGED
@@ -24,5 +24,5 @@ RUN if [ "$env" != "dev" ] --mount=type=secret,id=BOT_TOKEN,mode=0444,required=t
|
|
24 |
git init && \
|
25 |
git remote add origin $(cat /run/secrets/BOT_TOKEN) ; fi
|
26 |
|
27 |
-
EXPOSE
|
28 |
CMD python etymbot.py
|
|
|
24 |
git init && \
|
25 |
git remote add origin $(cat /run/secrets/BOT_TOKEN) ; fi
|
26 |
|
27 |
+
EXPOSE 8081
|
28 |
CMD python etymbot.py
|
etymbot.py
CHANGED
@@ -35,7 +35,7 @@ def inline_etym(update, context):
|
|
35 |
if __name__ == '__main__':
|
36 |
inline_etym_handler = InlineQueryHandler(inline_etym)
|
37 |
dispatcher.add_handler(inline_etym_handler)
|
38 |
-
updater.start_polling()
|
39 |
|
40 |
|
41 |
'''
|
|
|
35 |
if __name__ == '__main__':
|
36 |
inline_etym_handler = InlineQueryHandler(inline_etym)
|
37 |
dispatcher.add_handler(inline_etym_handler)
|
38 |
+
updater.start_polling(timeout=600)
|
39 |
|
40 |
|
41 |
'''
|