Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lsicdl2d committed Jan 10, 2021
1 parent 8536544 commit 7e49f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ dmypy.json
.botinit
config/bot_config.py
test.py
/plugins/enabled_plugins/setu.py
/plugins/enabled_plugins/
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
def register(text: str,qid: str):
steamid = text.replace(register_command,'').replace(' ','')
if steamid.isdigit() and len(steamid) == 17:
user.userInit(qid=qid,steamid=steamid)
if str(admin_qq) == qid:
user.setUserPermission(qid, 2)
user.userInit(qid=qid,steamid=steamid)
user_balance = uconomy.getUserBalance(steamid)
uconomy.setUserBalance(steamid,user_balance + Decimal(register_reward))
else:
Expand Down

0 comments on commit 7e49f37

Please sign in to comment.