GithubHelp home page GithubHelp logo

Comments (5)

Lanly109 avatar Lanly109 commented on July 24, 2024 1

我的aiocqhttp1.4.3Python版本是3.8.6。但我输出了event.replyNone
我注意到aiocqhttpEvent源码里有这么一段话

class Event(dict):
"""
封装从 OneBot (CQHTTP) 收到的事件数据对象(字典),提供属性以获取其中的字段。
typedetail_type 属性对于任何事件都有效外,其它属性存在与否(不存在则返回
None)依事件不同而不同。
"""

也就是它定义了__getattr__函数,调用的是pythondict类的成员函数get()获取对应的属性值,其行为就如上述的文字所说。

不过event.reply确实是nonebot.adapters.onebot里才有的,我看回复的需求应该不重要就把这段代码删了吧

from headimg_generator.

Ayusummer avatar Ayusummer commented on July 24, 2024 1

我来补下错误信息吧

OD6YHC2SP_Z30HGQ~`%75FU

问题在于更新完后 resource 没了导致找不到资源

把 resource 加上就行了😋

from headimg_generator.

kendajiwaimai avatar kendajiwaimai commented on July 24, 2024 1

终于知道为啥了...images资源里还有个images文件夹,需要把那个文件夹放到resource里....

from headimg_generator.

kendajiwaimai avatar kendajiwaimai commented on July 24, 2024

更新代码之后机器人报错'str' object has no attribute 'parent'

from headimg_generator.

Lanly109 avatar Lanly109 commented on July 24, 2024

更新代码之后机器人报错'str' object has no attribute 'parent'

请贴出报错时的堆栈信息,就如题主一样,以便能更好的排查错误哦。最好附上运行时的版本信息。

如果错误不是该issue类型的最好新开一个issue提问。

from headimg_generator.

Related Issues (20)

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.