Skip to content

Commit

Permalink
🐛 version 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 18, 2023
1 parent 09d9d29 commit f5b70ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ _✨ NoneBot2 Satori Protocol适配器 / Satori Protocol Adapter for NoneBot2

[Satori Protocol](https://satori.js.org/zh-CN/)

## 协议端
### 协议端

目前提供了 `satori` 协议实现的有:
- [Chronocat](https://chronocat.vercel.app)
- Satori
- Koishi (搭配 `@koishijs/plugin-server`

## 配置
Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/satori/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def send_private_message(
message: 要发送的消息
"""
channel = await self.user_channel_create(user_id=user_id)
return await self.message_create(channel_id=channel.id, message=message)
return await self.message_create(channel_id=channel.id, content=message)

async def update_message(
self,
Expand Down
4 changes: 2 additions & 2 deletions nonebot/adapters/satori/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@


def escape(text: str) -> str:
return text.replace('"', "&quot;").replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
return text.replace("&", "&amp;").replace('"', "&quot;").replace("<", "&lt;").replace(">", "&gt;")


def unescape(text: str) -> str:
return text.replace("&quot;", '"').replace("&amp;", "&").replace("&lt;", "<").replace("&gt;", ">")
return text.replace("&quot;", '"').replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&")


class Element(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-adapter-satori"
version = "0.6.0"
version = "0.6.1"
description = "Satori Protocol Adapter for Nonebot2"
authors = [
{name = "RF-Tar-Railt",email = "[email protected]"},
Expand Down

0 comments on commit f5b70ed

Please sign in to comment.