From 3ade07ec564bfb81763af0133a3235982be1d3a4 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Fri, 26 Mar 2021 19:26:00 +0100 Subject: [PATCH] :bug: Fixed bug where !stop throws exception --- Gwendolyn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gwendolyn.py b/Gwendolyn.py index c928fab..be4abab 100644 --- a/Gwendolyn.py +++ b/Gwendolyn.py @@ -1,4 +1,4 @@ -import discord, os, finnhub +import discord, os, finnhub, platform, asyncio from discord.ext import commands from pymongo import MongoClient @@ -6,6 +6,9 @@ from funcs import logThis, makeFiles, Money, Funcs, SwChar, SwDestiny, SwRoll, G commandPrefix = "!" +if platform.system() == "Windows": + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) + class Credentials(): def __init__(self): with open("credentials.txt","r") as f: