Giter Site home page Giter Site logo

Comments (2)

youfou avatar youfou commented on April 28, 2024

转发消息可以使用 wxpy 内置的转发功能:
http://wxpy.readthedocs.io/zh/latest/messages.html#wxpy.Message.forward

对于消息关联的问题,可以把小冰当作资源来使用

  1. 注册小冰的消息,收到的消息加入到队列(Queue)
  2. 队列的另一端,在处理消息时,需要设定两个阈值:有效连续时间、回复超时

其中有效连续时间,表示获取到一条回复后,队列内 N 秒内又出现了新消息,但无人认领(没有其他人发起请求),那么回复给最后一个请求的人;

而回复超时,则表示一条请求后,N 秒内没有回复,那么久表示没有回复(或其他问题导致失败)。

不过即便按照上面的方式执行,“上下文关联”的问题,仍然是无解的。
比如问小冰“我上句话说了啥”,小冰可能回复其他人说的话。

from wxpy.

Levstyle avatar Levstyle commented on April 28, 2024

谢谢大佬! ^_^

from wxpy.

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.