mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 23:36:02 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c67caf18df | ||
|
|
fe956fe4a5 | ||
|
|
0e52f679a2 | ||
|
|
b9500283ec | ||
|
|
441b69b528 | ||
|
|
898bcdc96b |
@@ -9,7 +9,7 @@
|
|||||||
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
||||||
|
|
||||||
<a href="https://docs.langbot.app">项目主页</a> |
|
<a href="https://docs.langbot.app">项目主页</a> |
|
||||||
<a href="https://docs.langbot.app/insight/intro.htmll">功能介绍</a> |
|
<a href="https://docs.langbot.app/insight/intro.html">功能介绍</a> |
|
||||||
<a href="https://docs.langbot.app/insight/guide.html">部署文档</a> |
|
<a href="https://docs.langbot.app/insight/guide.html">部署文档</a> |
|
||||||
<a href="https://docs.langbot.app/usage/faq.html">常见问题</a> |
|
<a href="https://docs.langbot.app/usage/faq.html">常见问题</a> |
|
||||||
<a href="https://docs.langbot.app/plugin/plugin-intro.html">插件介绍</a> |
|
<a href="https://docs.langbot.app/plugin/plugin-intro.html">插件介绍</a> |
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
||||||
|
|
||||||
<a href="https://docs.langbot.app">Home</a> |
|
<a href="https://docs.langbot.app">Home</a> |
|
||||||
<a href="https://docs.langbot.app/insight/intro.htmll">Features</a> |
|
<a href="https://docs.langbot.app/insight/intro.html">Features</a> |
|
||||||
<a href="https://docs.langbot.app/insight/guide.html">Deployment</a> |
|
<a href="https://docs.langbot.app/insight/guide.html">Deployment</a> |
|
||||||
<a href="https://docs.langbot.app/usage/faq.html">FAQ</a> |
|
<a href="https://docs.langbot.app/usage/faq.html">FAQ</a> |
|
||||||
<a href="https://docs.langbot.app/plugin/plugin-intro.html">Plugin</a> |
|
<a href="https://docs.langbot.app/plugin/plugin-intro.html">Plugin</a> |
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
<a href="https://trendshift.io/repositories/12901" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12901" alt="RockChinQ%2FLangBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
||||||
|
|
||||||
<a href="https://docs.langbot.app">ホーム</a> |
|
<a href="https://docs.langbot.app">ホーム</a> |
|
||||||
<a href="https://docs.langbot.app/insight/intro.htmll">機能</a> |
|
<a href="https://docs.langbot.app/insight/intro.html">機能</a> |
|
||||||
<a href="https://docs.langbot.app/insight/guide.html">デプロイ</a> |
|
<a href="https://docs.langbot.app/insight/guide.html">デプロイ</a> |
|
||||||
<a href="https://docs.langbot.app/usage/faq.html">FAQ</a> |
|
<a href="https://docs.langbot.app/usage/faq.html">FAQ</a> |
|
||||||
<a href="https://docs.langbot.app/plugin/plugin-intro.html">プラグイン</a> |
|
<a href="https://docs.langbot.app/plugin/plugin-intro.html">プラグイン</a> |
|
||||||
|
|||||||
@@ -261,11 +261,11 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
|
|||||||
|
|
||||||
for msg in geweap_msg:
|
for msg in geweap_msg:
|
||||||
if msg['type'] == 'text':
|
if msg['type'] == 'text':
|
||||||
await self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id, content=msg['content'])
|
self.bot.post_text(app_id=self.config['app_id'], to_wxid=target_id, content=msg['content'])
|
||||||
|
|
||||||
elif msg['type'] == 'image':
|
elif msg['type'] == 'image':
|
||||||
|
|
||||||
await self.bot.post_image(app_id=self.config['app_id'], to_wxid=target_id, img_url=msg["image"])
|
self.bot.post_image(app_id=self.config['app_id'], to_wxid=target_id, img_url=msg["image"])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class QQOfficialEventConverter(adapter.EventConverter):
|
|||||||
member_name= event.t,
|
member_name= event.t,
|
||||||
permission= 'MEMBER',
|
permission= 'MEMBER',
|
||||||
group = platform_entities.Group(
|
group = platform_entities.Group(
|
||||||
id = 0,
|
id = event.group_openid,
|
||||||
name = 'MEMBER',
|
name = 'MEMBER',
|
||||||
permission= platform_entities.Permission.Member
|
permission= platform_entities.Permission.Member
|
||||||
),
|
),
|
||||||
@@ -127,7 +127,7 @@ class QQOfficialEventConverter(adapter.EventConverter):
|
|||||||
member_name=event.t,
|
member_name=event.t,
|
||||||
permission= 'MEMBER',
|
permission= 'MEMBER',
|
||||||
group = platform_entities.Group(
|
group = platform_entities.Group(
|
||||||
id = 0,
|
id = event.channel_id,
|
||||||
name = 'MEMBER',
|
name = 'MEMBER',
|
||||||
permission=platform_entities.Permission.Member
|
permission=platform_entities.Permission.Member
|
||||||
),
|
),
|
||||||
@@ -140,7 +140,7 @@ class QQOfficialEventConverter(adapter.EventConverter):
|
|||||||
datetime.datetime.strptime(
|
datetime.datetime.strptime(
|
||||||
event.timestamp, "%Y-%m-%dT%H:%M:%S%z"
|
event.timestamp, "%Y-%m-%dT%H:%M:%S%z"
|
||||||
).timestamp()
|
).timestamp()
|
||||||
),
|
)
|
||||||
return platform_events.GroupMessage(
|
return platform_events.GroupMessage(
|
||||||
sender =sender,
|
sender =sender,
|
||||||
message_chain = yiri_chain,
|
message_chain = yiri_chain,
|
||||||
|
|||||||
@@ -2,18 +2,15 @@ from __future__ import annotations
|
|||||||
import typing
|
import typing
|
||||||
import asyncio
|
import asyncio
|
||||||
import traceback
|
import traceback
|
||||||
import time
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import aiocqhttp
|
|
||||||
import aiohttp
|
|
||||||
from libs.wecom_api.api import WecomClient
|
from libs.wecom_api.api import WecomClient
|
||||||
from pkg.platform.adapter import MessagePlatformAdapter
|
from pkg.platform.adapter import MessagePlatformAdapter
|
||||||
from pkg.platform.types import events as platform_events, message as platform_message
|
from pkg.platform.types import events as platform_events, message as platform_message
|
||||||
from libs.wecom_api.wecomevent import WecomEvent
|
from libs.wecom_api.wecomevent import WecomEvent
|
||||||
from pkg.core import app
|
from pkg.core import app
|
||||||
from .. import adapter
|
from .. import adapter
|
||||||
from ...pipeline.longtext.strategies import forward
|
|
||||||
from ...core import app
|
from ...core import app
|
||||||
from ..types import message as platform_message
|
from ..types import message as platform_message
|
||||||
from ..types import events as platform_events
|
from ..types import events as platform_events
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
semantic_version = "v3.4.10.2"
|
semantic_version = "v3.4.10.3"
|
||||||
|
|
||||||
debug_mode = False
|
debug_mode = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user