feat: 修改比赛信息格式 #86enwkvn5
This commit is contained in:
parent
47ceabdd7a
commit
57f7faf4fb
8
dota.py
8
dota.py
@ -261,10 +261,10 @@ def serialize_match_for_discord(match_):
|
|||||||
dire_highest_damage = player['hero_damage']
|
dire_highest_damage = player['hero_damage']
|
||||||
dire_highest_damage_idx = len(dire) - 1
|
dire_highest_damage_idx = len(dire) - 1
|
||||||
|
|
||||||
radiant[radiant_highest_gold_idx] = radiant[radiant_highest_gold_idx] + '💰'
|
radiant[radiant_highest_gold_idx] = '💰' + radiant[radiant_highest_gold_idx]
|
||||||
radiant[radiant_highest_damage_idx] = radiant[radiant_highest_damage_idx] + '🩸'
|
radiant[radiant_highest_damage_idx] = '🩸' + radiant[radiant_highest_damage_idx]
|
||||||
dire[dire_highest_gold_idx] = dire[dire_highest_gold_idx] + '💰'
|
dire[dire_highest_gold_idx] = '💰' + dire[dire_highest_gold_idx]
|
||||||
dire[dire_highest_damage_idx] = dire[dire_highest_damage_idx] + '🩸'
|
dire[dire_highest_damage_idx] = '🩸'+ dire[dire_highest_damage_idx]
|
||||||
|
|
||||||
color = 6732650 if win else 16724787 # 66bb6a or FF3333
|
color = 6732650 if win else 16724787 # 66bb6a or FF3333
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user