Coder Social home page Coder Social logo

Comments (16)

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

now, seperately it is saying token_func = js_code[1] if len(js_code) > 1 else js_code[0]
IndexError: list index out of range

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

Look at the Readme, you need to call list_servers() since v0.6.
IndexError means Aternos changed html-page code again. I'm going to fix this soon.
Thank you very much.

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

Yes, I've removed the link to the wiki from Readme because I didn't update it.
Please, use the code from Examples and Readme until I create documentation.

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

https://github.com/DarkCat09/python-aternos/blob/main/examples/start_example.py

aternos = Client.from_credentials(user, pswd)
srvs = aternos.list_servers()
print(srvs)
s = srvs[0]
s.start()

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

What version do you use? Update python-aternos from pip:

pip install -U python-aternos

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

I may have found an unlisted dependency: js2py

No, it's specified as a dependency in setup.py and requirements.txt.

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

dang it might just be me but the error still is there... maybe i have an old version? trying to get this to work so i can make a discord bot and have a command to start my server... do i need to clone the repo or something? also if it helps im using the default pip on the default version of python on replit... id think thats the latest?

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

Look at the Readme, you need to call list_servers() since v0.6. IndexError means Aternos changed html-page code again. I'm going to fix this soon. Thank you very much.

how soon is "soon"? i need the discord bot before i start my smp and if i dont people will be too annoying to start the server themselves so itll die

from python-aternos.

JimmyTheGreat1500 avatar JimmyTheGreat1500 commented on June 27, 2024

also im gonna make the discord bot easily configurable so you can clone the repo and set up a config file so you type in the discord bot api key, and your aternos credentials, and then your good. would that be possible

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

A small changes in Aternos website break all code... I hope I'll do something about it.
Please, wait a while, I'm going to release the fix tomorrow at about 10:30 GMT+4.

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

Read this comment: #15 (comment)
Just try to login one more time. This is the bug, it'll be fixed as I said before.

from python-aternos.

DarkCat09 avatar DarkCat09 commented on June 27, 2024

Update the module. If the error will appear again, host your bot on your PC or Heroku (it's free) instead of Replit.

from python-aternos.

Related Issues (20)

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.