Skip to content

Commit 0ea0a90

Browse files
authored
Update bot.py
1 parent adaef04 commit 0ea0a90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
if not os.path.exists(temp_dir):
4747
os.mkdir(temp_dir)
4848

49+
if sys.platform == 'win32':
50+
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
51+
4952

5053
class ModmailBot(commands.Bot):
5154
def __init__(self):

0 commit comments

Comments
 (0)