generated from justuser-31/mrl_v1_license
Исправление краша бота
This commit is contained in:
parent
f06de54ee0
commit
64c46c81cb
@ -198,6 +198,13 @@ def handle_user_leave(message):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
print("SFS Bot started...")
|
print("SFS Bot started...")
|
||||||
bot.polling(none_stop=True)
|
bot.polling(none_stop=True)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
exit(0)
|
||||||
|
except:
|
||||||
|
sleep(0.5)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user