This commit is contained in:
SiHuan 2020-05-06 16:05:27 +08:00
parent 78f360a99d
commit 76b55c2d02

View file

@ -216,12 +216,14 @@ class Ans(StdAns):
if cmd == '查刀': if cmd == '查刀':
alldao = '' alldao = ''
index = 1
for key, value in nowdata['all_player'].items(): for key, value in nowdata['all_player'].items():
alldao = alldao + value['id'] + ' ' + '🔪'*value['余刀'] + '🍴'*value['加时刀'] alldao = alldao + str(index) + '. ' + value['id'] + ' ' + '🔪'*value['余刀'] + '🍴'*value['加时刀']
if int(key) in nowdata['tree']: if int(key) in nowdata['tree']:
alldao = alldao + ' 在🌳上\n' alldao = alldao + ' 在🌳上\n'
else: else:
alldao = alldao + '\n' alldao = alldao + '\n'
index = index + 1
return alldao return alldao
if cmd == '求助': if cmd == '求助':