feat: configurable custom coin name (#950)

This commit is contained in:
Eat Hatsune Shallots
2024-08-08 18:02:53 +08:00
committed by GitHub
parent 26fcb5aad5
commit 2a4aa39bab
6 changed files with 48 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ func init() {
}
money := wallet.GetWalletOf(uid)
if money < 100 {
ctx.SendChain(message.Text("你钱包当前只有", money, "ATRI币,无法完成支付"))
ctx.SendChain(message.Text("你钱包当前只有", money, wallet.GetWalletName(), ",无法完成支付"))
return
}
err = wallet.InsertWalletOf(uid, -100)