Giter VIP home page Giter VIP logo

Comments (2)

veroxsity avatar veroxsity commented on August 23, 2024

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))

from mconbot.

RayNieport avatar RayNieport commented on August 23, 2024

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.

from mconbot.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.