fix(bot): 🐛 Do not try to use winloop.
This commit is contained in:
@@ -40,14 +40,7 @@ def flush_process():
|
||||
print("Flushing messages with uvloop.")
|
||||
|
||||
except ImportError:
|
||||
try:
|
||||
import winloop
|
||||
|
||||
winloop.install()
|
||||
print("Flushing messages with winloop.")
|
||||
|
||||
except ImportError:
|
||||
print("Could not find winloop nor uvloop for messages flushing.")
|
||||
print("Flushing messages with default loop.")
|
||||
|
||||
finally:
|
||||
asyncio.run(loop())
|
||||
|
||||
Reference in New Issue
Block a user