更新星铁wiki

This commit is contained in:
CMHopeSunshine 2023-12-22 23:54:36 +08:00
parent 688d98fec6
commit c8d2e6760f

View File

@ -80,9 +80,9 @@ async def sr_wiki_handler(state: T_State, regex_dict: dict = RegexDict()):
if name: if name:
state['name'] = Message(name) state['name'] = Message(name)
else: else:
data = list(name_map[TYPE_MAP[type]].values()) data = [i[0] for i in name_map[TYPE_MAP[type]].values()]
state['name_list'] = '\n'.join( state['name_list'] = '\n'.join(
[' '.join(data[i: i + 3][0]) for i in range(0, len(data), 3)] [' '.join(data[i: i + 3]) for i in range(0, len(data), 3)]
) )
state['times'] = 1 state['times'] = 1