Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
<jx3>[feat]calculator command force whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Sep 7, 2024
1 parent 203aaf7 commit 72030b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/jx3/calculator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from .wf import *

calc_dj = on_command("jx3_calculator_dj", aliases={"毒经计算器"}, priority=5) # 目前先对毒经的计算器进行响应,后续尽可能多地支持
calc_dj = on_command("jx3_calculator_dj", aliases={"毒经计算器"}, priority=5, force_whitespace=True) # 目前先对毒经的计算器进行响应,后续尽可能多地支持

@calc_dj.handle()
async def _(event: GroupMessageEvent, args: Message = CommandArg()):
Expand All @@ -38,7 +38,7 @@ async def _(event: GroupMessageEvent, args: Message = CommandArg()):
data = get_content_local(data)
await calc_dj.finish(ms.image(data))

calc_wf = on_command("jx3_calculator_wf", aliases={"无方计算器"}, priority=5) # 目前先对无方的计算器进行响应,后续尽可能多地支持
calc_wf = on_command("jx3_calculator_wf", aliases={"无方计算器"}, priority=5, force_whitespace=True) # 目前先对无方的计算器进行响应,后续尽可能多地支持

@calc_wf.handle()
async def _(event: GroupMessageEvent, args: Message = CommandArg()):
Expand All @@ -60,7 +60,7 @@ async def _(event: GroupMessageEvent, args: Message = CommandArg()):
data = get_content_local(data)
await calc_wf.finish(ms.image(data))

calc_ylj = on_command("jx3_calculator_lyj", aliases={"凌雪计算器"}, priority=5) # 目前先对无方的计算器进行响应,后续尽可能多地支持
calc_ylj = on_command("jx3_calculator_lyj", aliases={"凌雪计算器"}, priority=5, force_whitespace=True) # 目前先对无方的计算器进行响应,后续尽可能多地支持

@calc_ylj.handle()
async def _(event: GroupMessageEvent, args: Message = CommandArg()):
Expand Down

0 comments on commit 72030b0

Please sign in to comment.