Skip to content

Commit 68055a3

Browse files
committed
Removed resource key from json files
1 parent ba80ff8 commit 68055a3

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

coc/abc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ def _load_json_meta(cls, troop_meta, id, name, lab_to_townhall):
200200

201201
# spells and troops
202202
cls.training_cost = try_enum(UnitStat, troop_meta.get("TrainingCost"))
203-
cls.training_resource = Resource(value=troop_meta["TrainingResource"][0])
204203
cls.training_time = try_enum(UnitStat, troop_meta.get("TrainingTime"))
205204

206205
# only heroes

examples/discord_bot_with_cogs.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,6 @@ async def member_stat(self, ctx, player_tag):
5858
await ctx("This clan doesn't exist!")
5959
return
6060

61-
print("Hello")
62-
try:
63-
for spell in player.spells:
64-
print(spell)
65-
except Exception as error:
66-
import traceback
67-
exc = ''.join(traceback.format_exception(type(error), error,
68-
error.__traceback__,
69-
chain=True))
70-
print(exc)
71-
7261
frame = ""
7362
if player.town_hall > 11:
7463
frame += f"`{'TH Weapon LvL:':<15}` `{player.town_hall_weapon:<15}`\n"

0 commit comments

Comments
 (0)