Giter Site home page Giter Site logo

Integer Error? about palcon-discord HOT 5 CLOSED

alexraskin avatar alexraskin commented on August 12, 2024
Integer Error?

from palcon-discord.

Comments (5)

KOOKIIEStudios avatar KOOKIIEStudios commented on August 12, 2024 2

Glad to be of help and glad you liked it

In that case, I'll mark this issue as closed!

from palcon-discord.

Bratah123 avatar Bratah123 commented on August 12, 2024

That's an interesting error, I'm personally on python 3.12.1 (The latest version)

image

and don't see anything too breaking in the latest python patch that would cause this problem.

Are you on an older version of the bot?
What operating system are you on?

It might also be good to note, that the method you sent to that link to in client.py isn't actually used in the bot anywhere as it's supposed to be for testing

Thanks for your cooperation!

from palcon-discord.

KOOKIIEStudios avatar KOOKIIEStudios commented on August 12, 2024

I'm using 3.12 as well, and the TOML parser in the standard library interpreted the data type properly for me

I genuinely have no clue why it might be throwing errors for you 🤔

from palcon-discord.

KOOKIIEStudios avatar KOOKIIEStudios commented on August 12, 2024

Can't help but notice that your repo uses env rather than toml

os.envron uses strings only (see the docs) so if you're getting this issue with your repo and not this repo specifically, that might be the reason.

os.environ
A mapping object where keys and values are strings that represent the process environment.

os.getenv(key, default=None)
Return the value of the environment variable key as a string if it exists, or default if it doesn’t. key is a string. Note that since getenv() uses os.environ, the mapping of getenv() is similarly also captured on import, and the function may not reflect future environment changes.

Do let us know whether this is just an issue with your port of our source code to your own bot, or if it's affecting a clone of our project running on your device!

from palcon-discord.

alexraskin avatar alexraskin commented on August 12, 2024

os.envron uses strings only (see the docs) so if you're getting this issue with your repo and not this repo specifically, that might be the reason.

This was the problem! Thank you both for the quick reply! ❤️

Again nice work on the bot!

from palcon-discord.

Related Issues (16)

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.