realhuhu / py-plugin

miao py-plugin
GNU General Public License v3.0
48 stars 3 forks source link

没有get_bots方法 #19

Closed ProblemFactory closed 1 year ago

ProblemFactory commented 1 year ago

昨天装mcstatus插件的时候遇到了无法从nonebot中import get_bots的问题。我自己在py-plugin/nonebot/__init__.py中插入了下列实现作为workaround。

from typing import Dict
def get_bots() -> Dict[str, Bot]:
    return {'default':get_bot()}
realhuhu commented 1 year ago

已修复