discord bot can't connect to discord

ok so basically i was following some tutorial and put my token then pressed run and then this happened:

Traceback (most recent call last):
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 992, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)
  File "/usr/local/lib/python3.10/asyncio/", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('', 443)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/rech2020/discord_bot/", line 15, in <module>'yes token is here i just removed it from error')
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 860, in run
  File "/usr/local/lib/python3.10/asyncio/", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.10/asyncio/", line 646, in run_until_complete
    return future.result()
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 849, in runner
    await self.start(token, reconnect=reconnect)
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 777, in start
    await self.login(token)
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 612, in login
    data = await self.http.static_login(token)
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 803, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "/home/rech2020/.local/lib/python3.10/site-packages/discord/", line 625, in request
    async with self.__session.request(method, url, **kwargs) as response:
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 1187, in __aenter__
    self._resp = await self._coro
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 574, in _request
    conn = await self._connector.connect(
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 1235, in _create_direct_connection
    raise last_exc
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 1204, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/home/rech2020/.local/lib/python3.10/site-packages/aiohttp/", line 1000, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host ssl:default [Connect call failed ('', 443)]

did i do something wrong or discord bots are not possible on pythonanywhere

From a free account, you need to configure the library that you're using to connect through the proxy. Check the documentation of the library to see how to do that and the details that you need are here:

i am using

Unfortunately I don't think that the library is able to operate through a proxy, so you would need a paid account to use it.