Hello, I seem to be getting an error trying to run your bot because you won't get it verified!
the error I am getting is:
`G:\coronavirus-bot-2.5>py covid-19.py
Help.py loaded successfully
Reddit.py loaded successfully
Stats.py failed to load
TopGG.py failed to load
C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py:964: RuntimeWarning: coroutine 'TCPConnector._resolve_host' was never awaited
hosts = await asyncio.shield(self._resolve_host(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "G:\coronavirus-bot-2.5\covid-19.py", line 87, in
bot.run(config.token)
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 723, in run
return future.result()
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 702, in runner
await self.start(*args, **kwargs)
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 665, in start
await self.login(*args, bot=bot)
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 192, in request
async with self.__session.request(method, url, **kwargs) as r:
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 1012, in aenter
self._resp = await self._coro
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 480, in _request
conn = await self._connector.connect(
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 858, in _create_connection
_, proto = await self._create_direct_connection(
File "C:\Users\brade\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 964, in _create_direct_connection
hosts = await asyncio.shield(self._resolve_host(
TypeError: shield() got an unexpected keyword argument 'loop'
G:\coronavirus-bot-2.5>`
I don't know what I'm doing wrong the config has my token and I removed the google logging and replaced with print()
I did the following for install:
pip install -r requirements.txt
and created a config.py
with a value of
token='my token'
and then did
py covid-19.py
and then that error showed.
am I doing something wrong?