-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(adapter)!: rewrite kook, apscheduler adapter
- Loading branch information
1 parent
6613510
commit a09bf3f
Showing
35 changed files
with
1,158 additions
and
1,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-apscheduler/iamai/adapter/apscheduler/config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""APScheduler 适配器配置。""" | ||
|
||
from typing import Any, Dict | ||
|
||
from pydantic import Field | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-apscheduler/iamai/adapter/apscheduler/event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
- [ ] onebot 适配 | ||
- [ ] api | ||
""" | ||
|
||
import os | ||
import re | ||
import sys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-bililive/iamai/adapter/bililive/config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-bililive/iamai/adapter/bililive/event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""Bililive 适配器事件。""" | ||
|
||
import asyncio | ||
import inspect | ||
from enum import IntEnum | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-bililive/iamai/adapter/bililive/exceptions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""Bililive 适配器异常。""" | ||
|
||
from typing import Optional | ||
|
||
from iamai.exceptions import AdapterException | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-bililive/iamai/adapter/bililive/message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""Bililive 适配器消息。""" | ||
|
||
import json | ||
from io import StringIO | ||
from dataclasses import dataclass | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-console/iamai/adapter/console/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
"""Console适配器。 | ||
""" | ||
|
||
from asyncio import Condition | ||
|
||
from iamai.event import Event | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""Console 适配器配置。""" | ||
|
||
from typing import Any, Dict | ||
|
||
from iamai.config import ConfigModel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-dingtalk/iamai/adapter/dingtalk/config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""DingTalk 适配器配置。""" | ||
|
||
from iamai.config import ConfigModel | ||
|
||
__all__ = ["Config"] | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-dingtalk/iamai/adapter/dingtalk/event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-dingtalk/iamai/adapter/dingtalk/exceptions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-dingtalk/iamai/adapter/dingtalk/message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""DingTalk 适配器消息。""" | ||
|
||
from typing import Any, Dict, List, Optional | ||
|
||
from pydantic import model_serializer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-gensokyo/iamai/adapter/gensokyo/config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""GSK 适配器配置。""" | ||
|
||
from typing import Literal | ||
|
||
from iamai.config import ConfigModel | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-gensokyo/iamai/adapter/gensokyo/event.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""GSK 适配器事件。""" | ||
|
||
# pyright: reportIncompatibleVariableOverride=false | ||
|
||
from typing import ( | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-gensokyo/iamai/adapter/gensokyo/exceptions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""GSK 适配器异常。""" | ||
|
||
from typing import Any, ClassVar, Dict | ||
|
||
from iamai.exceptions import AdapterException | ||
|
1 change: 0 additions & 1 deletion
1
packages/iamai-adapter-gensokyo/iamai/adapter/gensokyo/message.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
"""GSK 适配器消息。""" | ||
|
||
from typing import Literal, Optional, Type, Union | ||
from typing_extensions import Self | ||
|
||
|
Oops, something went wrong.