Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
chore: add resolveEncoding function
Browse files Browse the repository at this point in the history
  • Loading branch information
winstonsung authored May 2, 2021
1 parent 549cbfe commit 60a84cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bridge-discord-to-qq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export async function toQQ(msg: Message) {
}
}

function resolveEncoding(msg) {
msg = msg.replace(new RegExp('&', 'g'), '&')
return msg
}

// 把表情解析成cq:image
export async function parseEmoji(message: string): Promise<string> {
let content = message;
Expand Down

0 comments on commit 60a84cf

Please sign in to comment.