Code Monkey home page Code Monkey logo

nonebot-plugin-cnrail's People

Contributors

falfachino avatar lgc2333 avatar this-is-xiaodeng avatar xiexilin2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nonebot-plugin-cnrail's Issues

优化“帮助”指令

输入/列车信息 -h 会出现使用帮助
希望在直接输入/列车信息 后就可以输出帮助
这样能更容易了解插件用法

启动报错

05-11 20:58:40 [ERROR] nonebot | Failed to import "nonebot_plugin_cnrail"
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\load.py", line 65, in load_all_plugins    return manager.load_all_plugins()
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 203, in load_all_plugins
    return set(
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 169, in load_plugin
    module = importlib.import_module(self._searched_plugin_ids[name])
  File "C:\Users\liuzj\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 255, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\liuzj\Documents\PaimonBot\src\plugins\nonebot_plugin_cnrail\__init__.py", line 6, in <module>
    from . import __main__ as __main__  # noqa: E402
  File "C:\Users\liuzj\Documents\PaimonBot\src\plugins\nonebot_plugin_cnrail\__main__.py", line 70, in <module>
    async def _(matcher: AlconnaMatcher, res: CommandResult):
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_alconna\matcher.py", line 432, in _decorator
    cls.append_handler(func, parameterless=parameterless)
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 433, in append_handler
    handler_ = Dependent[Any].parse(
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 157, in parse    params = cls.parse_params(call, allow_types)
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 113, in parse_params
    if field_info := allow_type._check_param(param, allow_types):
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_orm\param.py", line 152, in _check_param
    if models := generic_issubclass(pattern, type_annotation):
  File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_orm\utils.py", line 151, in generic_issubclass
    return issubclass(scls, cls)
  File "C:\Users\liuzj\AppData\Local\Programs\Python\Python310\lib\abc.py", line 123, in __subclasscheck__
    return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class

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.