I am new in python but, I wanted to make a discord bot. I've already seen some solutions that didn't help me.My problem is that I am getting an error(RuntimeError: Cannot close a running event loop) when i am trying to run this code:
import discord
from discord.ext import commands
client = commands.Bot(command_prefix='.')
@client.event
async def on_ready():
print('Here we go!')
client.run('qXfSXVL.......ww4FeCB6H.....Sw6')
P.S. I am using spyder anaconda with python 3.7 and I've tried to install nest_asyncio.
EDIT: I did everything that you said and it keep writing that error.