mirror of
https://github.com/snowy-yang/qqbotsdk.git
synced 2026-10-21 10:08:50 +00:00
feat!: api 拆包、心跳迁入传输层、限流重试与后台 handler
This commit is contained in:
1 parent
750ed81d96
commit
3237558128
30 files changed
+1145
-714
No files matched your search
+5
-2
@@ -1,6 +1,5 @@
|
||||
from qqbotsdk.config import Config
|
||||
from qqbotsdk.connecter import WebhookConnecter
|
||||
from qqbotsdk.emitter import EventEmitter
|
||||
from qqbotsdk.queue import EventQueue
|
||||
|
||||
|
||||
@@ -16,7 +15,11 @@ def make_connecter() -> WebhookConnecter:
|
||||
webhook_port=8080,
|
||||
webhook_path="/qqbot/webhook",
|
||||
)
|
||||
return WebhookConnecter(config, EventEmitter(EventQueue()), EventQueue())
|
||||
|
||||
async def noop_handle(payload):
|
||||
return None
|
||||
|
||||
return WebhookConnecter(config, EventQueue(), noop_handle)
|
||||
|
||||
|
||||
def test_first_push_is_not_duplicate():
|
||||
|
||||
Reference in new issue
Block a user