Giter Site home page Giter Site logo

DeprecationWarning about anibot HOT 10 OPEN

lostb053 avatar lostb053 commented on July 21, 2024
DeprecationWarning

from anibot.

Comments (10)

starry-shivam avatar starry-shivam commented on July 21, 2024 1
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(main())

Should fix that. It happens cause asyncio couldn't get active event loop on main thread for some reason.

from anibot.

lostb053 avatar lostb053 commented on July 21, 2024

@zYxDevs No idea how to fix
But bot works regardless

from anibot.

zYxDevs avatar zYxDevs commented on July 21, 2024

@lostb053 yeah bot is working fine, i just found that error so i think should report it here

from anibot.

lostb053 avatar lostb053 commented on July 21, 2024

@zYxDevs heh
i know it already
no idea what's it about tho

from anibot.

zYxDevs avatar zYxDevs commented on July 21, 2024

@lostb053 ok then, now let me say my request, make it possible bot to send airing, subsplease, cruncyroll, news notifier in a channels too

from anibot.

lostb053 avatar lostb053 commented on July 21, 2024

Thanx
Lemme try

from anibot.

lostb053 avatar lostb053 commented on July 21, 2024
loop = asyncio.new_event_loop()
loop.run_until_complete(main())

Should fix that. It happens cause asyncio couldn't get active event loop on main thread for some reason.

Not that i understand reasoning why it doesn't work

from anibot.

zYxDevs avatar zYxDevs commented on July 21, 2024

@lostb053 there is have another error too open change gui settings (bullets) then press back and see logs, there is say cant edit message with same query i guessπŸ€”

from anibot.

lostb053 avatar lostb053 commented on July 21, 2024

@zYxDevs Will see

from anibot.

starry-shivam avatar starry-shivam commented on July 21, 2024

Not that i understand reasoning why it > doesn't work

Ig you might be using python3.10, in py10 default event loop is being removed from main thread, right now it works fine and just shows warning but in future it might raise RuntimeError which will cause your bot stop functioning.

from anibot.

Related Issues (11)

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.