Skip to content

Commit

Permalink
fix: 设置没判断主人
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Nov 20, 2024
1 parent d1412b0 commit b762ce5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions apps/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down
4 changes: 4 additions & 0 deletions apps/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions lib/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ const redis = await (async () => {
}
})()

redis.get('test11').then(console.log)

export default redis

0 comments on commit b762ce5

Please sign in to comment.