diff --git a/apps/info.js b/apps/info.js index f650091..c516735 100644 --- a/apps/info.js +++ b/apps/info.js @@ -19,6 +19,7 @@ export const rule = { await e.reply([segment.at(uid), '\n还没有绑定steamId哦, 先绑定steamId吧']) return true } + e.reply([segment.at(uid), '\n在查了...在查了...']) // TODO: 先获取https://steamcommunity.com/profiles/${steamId}/ const data = await api.ISteamUser.GetPlayerSummaries(steamId) if (!data.length) { diff --git a/apps/inventory.js b/apps/inventory.js index 1989fe9..ffc870f 100644 --- a/apps/inventory.js +++ b/apps/inventory.js @@ -20,6 +20,7 @@ export const rule = { await e.reply([segment.at(uid), '\n还没有绑定steamId哦, 先绑定steamId吧']) return true } + e.reply([segment.at(uid), '\n在查了...在查了...']) const nickname = await utils.getUserName(e.self_id, e.user_id, e.group_id) const screenshotOptions = { title: '', diff --git a/apps/setting.js b/apps/setting.js index 8e57910..6595290 100644 --- a/apps/setting.js +++ b/apps/setting.js @@ -13,6 +13,10 @@ export const rule = { setting: { reg: new RegExp(`^#steam设置\\s*(${keys.join('|')})?\\s*(.*)$`), fnc: async e => { + if (!e.isMaster) { + await e.reply('只有主人才可以设置哦~') + return true + } const regRet = rule.setting.reg.exec(e.msg) const cfgSchemaMap = setting.getCfgSchemaMap() if (!regRet) { diff --git a/lib/redis.js b/lib/redis.js index 7df15c0..29ba88d 100644 --- a/lib/redis.js +++ b/lib/redis.js @@ -9,6 +9,4 @@ const redis = await (async () => { } })() -redis.get('test11').then(console.log) - export default redis