plugin load

This commit is contained in:
yanyongyu
2020-06-30 10:13:58 +08:00
parent 16099b2c35
commit 7529559d24
10 changed files with 244 additions and 132 deletions

View File

@ -1,4 +1,6 @@
from typing import Literal, Callable
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
Scope = Literal["PRIVATE", "DISCUSS", "GROUP", "ALL"]
Handler = Callable[["Event", dict], None]
from typing import Callable, Awaitable
Handler = Callable[["Bot", "Event", dict], Awaitable[None]]