RayNieport / mconBot

A bot to interact with your Minecraft server - from Discord!
Other
19 stars 4 forks source link

Bot no longer working (investigation required) #9

Open RayNieport opened 1 year ago

RayNieport commented 1 year ago

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.

veroxsity commented 10 months ago

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 commented 8 months ago

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.