Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

增加消息管道 #42

Open
youfou opened this issue Apr 28, 2017 · 1 comment
Open

增加消息管道 #42

youfou opened this issue Apr 28, 2017 · 1 comment

Comments

@youfou
Copy link
Owner

youfou commented Apr 28, 2017

在 Bot 对象中增加一个新的接口,用于设置消息管道。

消息管道 (message_pipe):

  • 每当收到新消息时,除了执行相应的注册函数,还将执行用户设定的“消息管道”函数
  • 消息管道函数,通常用于执行类似“记录消息到数据库”的操作
  • 消息管道函数的执行,为一个单独线程,且始终顺序执行(只有一个线程)
@ghost
Copy link

ghost commented Mar 29, 2019

有例子可以提供吗 谢谢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant