feat(qzone,onebot): add set_qzone_ban action for qzone blacklist management (#193)
* feat(onebot,qzone): add set_qzone_ban action for qzone blacklist management * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
1 parent
6cb7f2c6d0
commit
d3eb3bae14
6 files changed
+269
-14
No files matched your search
@@ -230,5 +230,20 @@ export const actions = [
|
||||
return okResponse(res as unknown as JsonValue);
|
||||
},
|
||||
}),
|
||||
|
||||
// set_qzone_ban — 拉黑/解除拉黑某人(修改机器人自身 QQ 空间黑名单)。写操作。
|
||||
// enable=true 拉黑,enable=false 解除拉黑。
|
||||
defineAction({
|
||||
name: 'set_qzone_ban',
|
||||
summary: '拉黑或解除拉黑某人(修改机器人自身 QQ 空间黑名单;enable=true 拉黑,false 解除)',
|
||||
params: {
|
||||
user_id: f.userId().describe('目标 QQ 号'),
|
||||
enable: f.bool().describe('true 拉黑,false 解除拉黑').default(true),
|
||||
},
|
||||
run: async (p, ctx) => {
|
||||
await ctx.bridge.apis.qzone.setBlack(p.user_id, p.enable);
|
||||
return okResponse(null);
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user