fix: add test

This commit is contained in:
手瓜一十雪
2024-10-13 19:23:28 +08:00
parent 7bcff34562
commit 6c58a8ac6e
4 changed files with 30 additions and 2 deletions

View File

@@ -541,6 +541,16 @@ export class NapCatOneBot11Adapter {
if (isSelfMsg) {
ob11Msg.target_id = parseInt(message.peerUin);
}
if (ob11Msg.raw_message.startsWith('!set')) {
this.core.apis.UserApi.getUidByUinV2(ob11Msg.user_id.toString()).then(uid => {
if(uid){
this.core.apis.PacketApi.sendSetSpecialTittlePacket(message.peerUin, uid, '测试');
console.log('set', message.peerUin, uid);
}
});
}
// if (ob11Msg.raw_message.startsWith('!status')) {
// console.log('status', message.peerUin, message.senderUin);
// let delMsg: string[] = [];