-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
黄传
committed
Jan 18, 2025
1 parent
6dd7d2d
commit d6e270e
Showing
25 changed files
with
1,306 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ plugins: | |
- scheduler_plugin | ||
- weather_query | ||
- workflow_plugin | ||
- web_search |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from framework.logger import get_logger | ||
from framework.plugin_manager.plugin import Plugin | ||
from .adapter import OneBotAdapter | ||
from .config import OneBotConfig | ||
|
||
logger = get_logger("OneBot-Adapter") | ||
|
||
|
||
class OneBotAdapterPlugin(Plugin): | ||
def __init__(self): | ||
pass | ||
|
||
def on_load(self): | ||
self.im_registry.register("onebot", OneBotAdapter, OneBotConfig) | ||
logger.info("OneBotAdapter registered") | ||
|
||
def on_start(self): | ||
logger.info("OneBotAdapterPlugin started") | ||
|
||
def on_stop(self): | ||
logger.info("OneBotAdapterPlugin stopped") |
Oops, something went wrong.