Comments (10)
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.
@zYxDevs No idea how to fix
But bot works regardless
from anibot.
@lostb053 yeah bot is working fine, i just found that error so i think should report it here
from anibot.
@zYxDevs heh
i know it already
no idea what's it about tho
from anibot.
@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.
Thanx
Lemme try
from anibot.
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.
@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.
@zYxDevs Will see
from anibot.
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)
- Didn't work after deployed on heroku HOT 13
- Livechart.me plugin is not working HOT 1
- bot picture support HOT 2
- Bug on Airing HOT 9
- When I run, it says to contact you..... HOT 3
- Invalid parse mode "markdown" HOT 4
- Spoiler tags in Spoiler on tg
- Fix 43 Maintainability issues in multiple files
- Fix 3 Maintainability issues in multiple files
- Fix 'Consider changing "not len(btn) == 0" to "len(btn) != 0"' issue in anibot\utils\data_parser.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anibot.