mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
parent
b2b9cfd555
commit
8216b93c32
@ -28,7 +28,7 @@ const _getTargetUid = async function (e) {
|
||||
}
|
||||
uid = user.uid
|
||||
if ((!uid || !uidReg.test(uid)) && !e._replyNeedUid) {
|
||||
e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
|
||||
e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
|
||||
e._replyNeedUid = true
|
||||
return false
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ const ProfileList = {
|
||||
async refresh (e) {
|
||||
let uid = await getTargetUid(e)
|
||||
if (!uid) {
|
||||
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
|
||||
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
|
||||
return true
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ const ProfileList = {
|
||||
async render (e) {
|
||||
let uid = await getTargetUid(e)
|
||||
if (!uid) {
|
||||
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
|
||||
e._replyNeedUid || e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ export default class MysApi {
|
||||
if (uid) {
|
||||
return new User({ id: e.user_id, uid })
|
||||
} else {
|
||||
e.reply('请先发送【#绑定+你的UID】来绑定查询目标')
|
||||
e.reply('请先发送【#绑定+你的UID】来绑定查询目标\n星铁请使用【#星铁绑定+UID】')
|
||||
e._replyNeedUid = true
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user