make card and cards command attributes tag only

pull/1/head
qwewqa 4 years ago
parent 62c78b15d0
commit 1d81fa81b1
  1. 3
      miyu_bot/commands/cogs/card.py

@ -127,8 +127,7 @@ class Card(commands.Cog):
units = {units_by_name[unit].id units = {units_by_name[unit].id
for unit in arguments.tags(names=units_by_name.keys(), aliases=unit_aliases)} for unit in arguments.tags(names=units_by_name.keys(), aliases=unit_aliases)}
rarities = {int(r[0]) for r in arguments.words(['4*', '3*', '2*', '1*', r'4\*', r'3\*', r'2\*', r'1\*'])} rarities = {int(r[0]) for r in arguments.words(['4*', '3*', '2*', '1*', r'4\*', r'3\*', r'2\*', r'1\*'])}
attributes = {attributes_by_name[a].id attributes = {attributes_by_name[a].id for a in arguments.tags(attributes_by_name.keys())}
for a in arguments.words(attributes_by_name.keys()) | arguments.tags(attributes_by_name.keys())}
event_bonus = bool(arguments.tags(['event', 'eventbonus', 'event_bonus'])) event_bonus = bool(arguments.tags(['event', 'eventbonus', 'event_bonus']))

Loading…
Cancel
Save