Release beta 1.0.5 primogem economy

This commit is contained in:
JWeBot Contributors
2026-10-16 16:46:44 +08:00
parent 127fea8cd0
commit b1d8e4e8e7
50 changed files with 1615 additions and 88 deletions
+2 -1
View File
@@ -6,10 +6,11 @@ JWeBot 版本
Help:
- `/version`
- `/version /版本`
Registered commands:
- `/版本`
- `/version`
The adapter has no direct Ledger, GUI, environment, shell, or network access.
@@ -1,14 +1,14 @@
id = "jwebot-version"
author = "official"
description = "JWeBot 版本"
help = ["/version"]
help = ["/version /版本"]
version = "1.0.0"
api_version = "1"
entrypoint = "jwebot_version:plugin"
type = "command"
[capabilities]
commands = ["/version"]
commands = ["/版本", "/version"]
storage = false
network_profiles = []
service_profiles = ["jwebot-version"]
@@ -6,8 +6,8 @@ from jwebot_sdk import Event, ExtensionResult, ReplyPlan, SingleGroupContext
PROFILE = 'jwebot-version'
AUTHOR = 'official'
DESCRIPTION = 'JWeBot 版本'
HELP_ENTRIES = ('/version',)
COMMANDS = ('/version',)
HELP_ENTRIES = ('/version /版本',)
COMMANDS = ('/版本', '/version')
def _handler(context: SingleGroupContext, command: str):
@@ -20,9 +20,9 @@ class PluginTests(unittest.TestCase):
]
self.assertEqual(AUTHOR, 'official')
self.assertEqual(DESCRIPTION, 'JWeBot 版本')
self.assertEqual(HELP_ENTRIES, ('/version',))
self.assertIn('/version', registered)
self.assertEqual(len(registered), 1)
self.assertEqual(HELP_ENTRIES, ('/version /版本',))
self.assertIn('/版本', registered)
self.assertEqual(len(registered), 2)
if __name__ == "__main__":
@@ -2,7 +2,7 @@
Author: `official`
查询当前群已配置人物、基本属性和别名
人物索引
Help:
@@ -1,6 +1,6 @@
id = "person-directory"
author = "official"
description = "查询当前群已配置人物、基本属性和别名"
description = "人物索引"
help = ["/人物列表 [页码] /people;/人物 [名称或别名] /person"]
version = "1.0.0"
api_version = "1"
@@ -5,7 +5,7 @@ from jwebot_sdk import Event, ExtensionResult, ReplyPlan, SingleGroupContext
PROFILE = 'person-directory'
AUTHOR = 'official'
DESCRIPTION = '查询当前群已配置人物、基本属性和别名'
DESCRIPTION = '人物索引'
HELP_ENTRIES = ('/人物列表 [页码] /people;/人物 [名称或别名] /person',)
COMMANDS = ('/人物列表', '/别名列表', '/people', '/人物', '/个人属性', '/person')
@@ -19,7 +19,7 @@ class PluginTests(unittest.TestCase):
for call in context.commands.register.call_args_list
]
self.assertEqual(AUTHOR, 'official')
self.assertEqual(DESCRIPTION, '查询当前群已配置人物、基本属性和别名')
self.assertEqual(DESCRIPTION, '人物索引')
self.assertEqual(HELP_ENTRIES, ('/人物列表 [页码] /people;/人物 [名称或别名] /person',))
self.assertIn('/人物列表', registered)
self.assertEqual(len(registered), 6)