I have tried two methods to get this working. The first is the following:
C:\CloneCord-Bot-main\CloneCord-Bot-main>python` clonecord.py
Traceback (most recent call last):
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "clonecord.py", line 414, in <module>
bot.run(TOKEN)
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 723, in run
return future.result()
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 702, in runner
await self.start(*args, **kwargs)
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 665, in start
await self.login(*args, bot=bot)
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 304, in static_login
raise LoginFailure('Improper token has been passed.') from exc
discord.errors.LoginFailure: Improper token has been passed.
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001B1BF3788B0>
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Program Files\Python38\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Program Files\Python38\lib\asyncio\base_events.py", line 719, in call_soon
self._check_closed()
File "C:\Program Files\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
The second one was the heroku method. I imported my private repo with edited files as in the first method and even added the config variables just in case. Sadly, this didn't work either. It just hangs and won't start and the log isn't helpful.
`2021-10-08T20:51:30.348280+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=x.herokuapp.com request_id=e4155666-3339-4416-977d-d04998e98165 fwd="212.5.215.150" dyno= connect= service= status=503 bytes= protocol=https
2021-10-08T20:51:31.406088+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=x.herokuapp.com request_id=57466b37-4642-49ab-8704-e6ce2840525c fwd="212.5.215.150" dyno= connect= service= status=503 bytes= protocol=https`
This is my first discord bot, so I am not sure if I am doing something incorrectly. I have mostly been using telegram bots until now.
Thank you for making this, I appreciate any help you can offer :)