测试变量作用域

This commit is contained in:
JakelooCheng 2025-04-28 20:46:30 +08:00
parent 19e4d152fc
commit b8f19ad612

View File

@ -166,6 +166,7 @@ class MyPlugin(Star):
@filter.command("测试")
async def test(self, event: AstrMessageEvent):
global testNumber
testNumber = testNumber + 1
yield event.plain_result(f"累积结果: {testNumber}")