make card command character names tags as well

pull/1/head
qwewqa 4 years ago
parent 7a780eb9da
commit 76df0037cf
  1. 3
      miyu_bot/commands/cogs/card.py

@ -124,7 +124,8 @@ class Card(commands.Cog):
display, _ = arguments.single(['display', 'disp'], sort, allowed_operators=['='], display, _ = arguments.single(['display', 'disp'], sort, allowed_operators=['='],
converter=card_attribute_aliases) converter=card_attribute_aliases)
characters = {self.bot.aliases.characters_by_name[c].id characters = {self.bot.aliases.characters_by_name[c].id
for c in arguments.words(self.bot.aliases.characters_by_name.keys())} for c in arguments.words(self.bot.aliases.characters_by_name.keys()) |
arguments.tags(self.bot.aliases.characters_by_name.keys())}
units = {self.bot.aliases.units_by_name[unit].id units = {self.bot.aliases.units_by_name[unit].id
for unit in arguments.tags(names=self.bot.aliases.units_by_name.keys(), for unit in arguments.tags(names=self.bot.aliases.units_by_name.keys(),
aliases=self.bot.aliases.unit_aliases)} aliases=self.bot.aliases.unit_aliases)}

Loading…
Cancel
Save