feature:积分交易功能上线
This commit is contained in:
@@ -4,7 +4,7 @@ from datetime import datetime
|
||||
|
||||
from wcferry import Wcf, WxMsg
|
||||
|
||||
from robot_cmd.robot_command import GroupBotManager
|
||||
from robot_cmd.robot_command import GroupBotManager, Feature, PermissionStatus
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
@@ -78,6 +78,10 @@ class PointTrade:
|
||||
self.wcf.send_text(f"-----Bot-----\n❌命令格式错误!{self.command_format}",
|
||||
(message.roomid if message.from_group() else message.sender), message.sender)
|
||||
return
|
||||
|
||||
if self.gbm.get_group_permission(message.roomid, Feature.POINT_TRADE) == PermissionStatus.DISABLED:
|
||||
return
|
||||
|
||||
if not command[1].isdigit():
|
||||
self.wcf.send_text(f"-----Bot-----\n🈚️转账积分无效(必须为正整数!) \n{self.command_format}",
|
||||
(message.roomid if message.from_group() else message.sender), message.sender)
|
||||
|
||||
Reference in New Issue
Block a user