From 76df0037cf8ed673ca8772f73e6a2da67741312c Mon Sep 17 00:00:00 2001 From: qwewqa <198e559dbd446d973355f415bdfa34@gmail.com> Date: Sat, 23 Jan 2021 17:10:05 -0500 Subject: [PATCH] make card command character names tags as well --- miyu_bot/commands/cogs/card.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miyu_bot/commands/cogs/card.py b/miyu_bot/commands/cogs/card.py index 9ed489b..69996eb 100644 --- a/miyu_bot/commands/cogs/card.py +++ b/miyu_bot/commands/cogs/card.py @@ -124,7 +124,8 @@ class Card(commands.Cog): display, _ = arguments.single(['display', 'disp'], sort, allowed_operators=['='], converter=card_attribute_aliases) 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 for unit in arguments.tags(names=self.bot.aliases.units_by_name.keys(), aliases=self.bot.aliases.unit_aliases)}