-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ 支持显示群戳一戳信息 ✨ 脚本页面增加一些内置脚本 ✨ 对自己发送的表情回应进行了显示 🎨 优化消息处理分发代码,去除大量 switch 💩 移除历史遗留的分阶段获取视频消息的功能
- Loading branch information
Showing
10 changed files
with
931 additions
and
674 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
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,12 @@ | ||
[ | ||
{ | ||
"title": "自动回应", | ||
"name": "autoResponse", | ||
"condition": "message" | ||
}, | ||
{ | ||
"title": "刷新特别关心", | ||
"name": "createSpecialCare", | ||
"condition": "userFlush" | ||
} | ||
] |
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,11 @@ | ||
/* | ||
title: 自动回应 | ||
*/ | ||
|
||
const id = this.msgInfo.group_id ?? this.msgInfo.private_id | ||
const blacklist = [] | ||
|
||
if (this.isMe && blacklist.indexOf(id) === -1) { | ||
this.sendMsg('set_msg_emoji_like', | ||
{ 'message_id': this.message.message_id, 'emoji_id': '66' }) | ||
} |
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,22 @@ | ||
/* | ||
title: 刷新特别关心 | ||
discription: 有些框架获取分组可能不包含特别关心, | ||
你可以用这个脚本来指定特别关心的用户; | ||
享受特别关心的相关通知功能。 | ||
*/ | ||
|
||
const specialList = [] | ||
for (const user of this.runtimeData.userList) { | ||
if (specialList.includes(user.user_id)) { | ||
user.class_id = 9999 | ||
user.class_name = '特别关心' | ||
const classInfo = this.runtimeData.tags.classes.find( | ||
(item) => item.class_id == 9999) | ||
if (classInfo == undefined) { | ||
this.runtimeData.tags.classes.unshift({ | ||
class_id: 9999, | ||
class_name: '特别关心' | ||
}) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.