NoneBot2 is an asynchronous, cross-platform Python bot framework that supports multiple adapters (e.g., OneBot, Telegram, Discord). It uses a plugin system and is built on asyncio. Current version: 2.5.0, with frequent minor releases. Requires Python >=3.10.
pip install nonebot2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize NoneBot2, register the OneBot v11 adapter, load built-in plugins, and run.
Migrate plugins to use new imports (from nonebot.plugin, nonebot.matcher, etc.) and event handlers.
Run as a script directly, not inside an async context.
Ensure plugin file names are lowercase and consistent.
Replace 'from nonebot.log import logger' with 'from nonebot.utils import logger'.
Move the run call to the top-level script, outside any async context.
Use 'from nonebot.plugin import on_command'.
Install the adapter: pip install nonebot-adapter-onebot.
No dependency data recorded yet.