🐛 Fixed bug where !stop throws exception
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user