修改赠与@信息
This commit is contained in:
@@ -1788,12 +1788,6 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
if len(parts) < 2:
|
||||
await self._send_text_with_status(bot, sender, roomid, "格式:赠与 目标 数量", 90)
|
||||
return False, "命令格式错误"
|
||||
target_wxid = parts[0].lstrip("@")
|
||||
try:
|
||||
qty = int(parts[1])
|
||||
except Exception:
|
||||
await self._send_text_with_status(bot, sender, roomid, "格式:赠与 目标 数量", 90)
|
||||
return False, "命令格式错误"
|
||||
parts = content.strip().split()
|
||||
if len(parts) < 2:
|
||||
await self._send_text_with_status(bot, sender, roomid, "格式:赠与 目标 数量", 90)
|
||||
@@ -1811,10 +1805,6 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
await self._send_text_with_status(bot, sender, roomid, "需双方皆踏入仙途", 90)
|
||||
|
||||
return False, "道友尚未踏入仙途,请先发送:注册修仙 道号"
|
||||
if not giver.get("clan_id") or giver.get("clan_id") != receiver.get("clan_id"):
|
||||
await self._send_text_with_status(bot, sender, roomid, "灵石只可同门相赠", 90)
|
||||
|
||||
return False, "不同门"
|
||||
stones = int(giver.get("spirit_stone", 0))
|
||||
if qty <= 0 or stones < qty:
|
||||
await self._send_text_with_status(bot, sender, roomid, "灵石不足或数量有误", 90)
|
||||
|
||||
Reference in New Issue
Block a user