mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: get/check coin
Closes #661 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -3,6 +3,14 @@ class GlobalData {
|
||||
|
||||
int replyLengthLimit = 6;
|
||||
|
||||
num? coins;
|
||||
|
||||
void afterCoin(int coin) {
|
||||
if (coins != null) {
|
||||
coins = coins! - coin;
|
||||
}
|
||||
}
|
||||
|
||||
// 私有构造函数
|
||||
GlobalData._();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user