mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix:修复刷屏问题
This commit is contained in:
parent
7b1f42b683
commit
067954c06f
10
apps/poke.js
10
apps/poke.js
@ -41,7 +41,7 @@ async function pokeMaster(e) {
|
||||
if (cfg.masterQQ.includes(e.operator_id) || e.self_id === e.operator_id) {
|
||||
return;
|
||||
}
|
||||
await e.reply(`小嘿子不许戳!`, false, 60);
|
||||
await e.reply(`小嘿子不许戳!`, false, { recallMsg: 60 });
|
||||
await tool.sleep(1000);
|
||||
await e.bot.sendApi('group_poke', { group_id: e.group_id, user_id: e.operator_id });
|
||||
return true;
|
||||
@ -77,11 +77,15 @@ async function handleBotPoke(e) {
|
||||
await e.reply(
|
||||
`戳一戳出错了!${configControl.get('profile')?.nickName}不知道该说啥好了..`,
|
||||
false,
|
||||
60
|
||||
{ recallMsg: 60 }
|
||||
);
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error('戳一戳请求失败', err);
|
||||
await e.reply(`戳一戳出错了!${configControl.get('profile')?.nickName}不知道该说啥好了..`);
|
||||
await e.reply(
|
||||
`戳一戳出错了!${configControl.get('profile')?.nickName}不知道该说啥好了..`,
|
||||
false,
|
||||
{ recallMsg: 60 }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user