Skip to content

Commit

Permalink
Merge pull request #254 from serfend/Server
Browse files Browse the repository at this point in the history
fix[server]should use map
  • Loading branch information
Serfend authored Jun 26, 2023
2 parents c89f1b7 + 65acde3 commit d434f04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/jx3/server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from .api import *

cmd_jx3_server = on_command("jx3_server", aliases={"服务器","开服"}, priority=5)
cmd_jx3_server = on_command("jx3_server", aliases={"服务器", "开服"}, priority=5)


@cmd_jx3_server.handle()
async def jx3_server(event: GroupMessageEvent, args: Message = CommandArg()):
'''
Expand All @@ -10,4 +12,5 @@ async def jx3_server(event: GroupMessageEvent, args: Message = CommandArg()):
Example:-开服 幽月轮
'''
server = args.extract_plain_text()
await cmd_jx3_server.finish(await server_status(server = server))
server = server_mapping(server, event.group_id)
await cmd_jx3_server.finish(await server_status(server=server))

0 comments on commit d434f04

Please sign in to comment.