Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot no longer working (investigation required) #9

Open
RayNieport opened this issue Jul 5, 2023 · 2 comments
Open

Bot no longer working (investigation required) #9

RayNieport opened this issue Jul 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@RayNieport
Copy link
Owner

For whatever reason, the bot no longer seems to function. Not sure if this is due to some breaking change in the Discord API or an update to the discord.py library. I will look into this further if I have some free time.

@RayNieport RayNieport added the bug Something isn't working label Jul 5, 2023
@veroxsity
Copy link

im getting this:
Loop thread traceback (most recent call last):
File "/opt/mconBot/src/mconBot.py", line 124, in
client.run(TOKEN)
File "/usr/lib/python3/dist-packages/discord/client.py", line 828, in run
asyncio.run(runner())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "/usr/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
self.run_forever()
File "/usr/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
self._run_once()
File "/usr/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
handle._run()
File "/usr/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/lib/python3/dist-packages/discord/client.py", line 409, in _run_event
await coro(*args, **kwargs)
File "/opt/mconBot/src/mconBot.py", line 113, in on_message
await send_rcon(cmd, args, message)
File "/opt/mconBot/src/mconBot.py", line 55, in send_rcon
with rcon(IP, PASS, PORT) as mcr:
File "/opt/mconBot/src/rcon.py", line 16, in enter
self.connect()
File "/opt/mconBot/src/rcon.py", line 24, in connect
self.socket.connect((self.host, self.port))

@RayNieport
Copy link
Owner Author

Unfortunately I've been super busy this year and haven't had time to investigate this issue yet. I admit it hasn't been a priority, since I mainly administer my server locally rather than via RCON. There was clearly some kind of upstream change that broke things, but I haven't had time to debug. At this point it might be worth rewriting the whole thing with a newer version of the API.

Given the way many tech companies are currently locking down their APIs, I'm not sure if Discord will even support these types of bots in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants