diff --git a/bot/extensions/tags/commands.py b/bot/extensions/tags/commands.py index 04d76faf..f412c9b6 100644 --- a/bot/extensions/tags/commands.py +++ b/bot/extensions/tags/commands.py @@ -174,6 +174,21 @@ async def make(self, interaction: core.InteractionType): """Starts an interactive session to create your tag.""" await interaction.response.send_modal(MakeTagModal(cog=self)) + @tags.command() + @app_commands.autocomplete(name=fetch_similar_tags) + @app_commands.describe(name="The name of the tag to show.") + async def info(self, interaction: core.InteractionType, name: str): + """Shows information about the tag with the given name.""" + tag = await Tag.fetch_by_name(guild_id=interaction.guild.id, name=name) + + if tag is None: + return await interaction.response.send_message("There is no tag with that name", ephemeral=True) + + author = self.bot.get_user(tag.author_id) + author = str(author) if isinstance(author, discord.User) else f"(ID: {tag.author_id})" + text = f"Tag: {name}\n\n```prolog\nCreator: {author}\n Uses: {tag.uses}\n```" + await interaction.response.send_message(content=text, ephemeral=True) + @tags.command() @app_commands.autocomplete(name=staff_tag_autocomplete) @app_commands.describe(name="The name of the tag to edit.") diff --git a/cli.py b/cli.py index 5e686f6e..d7af2603 100644 --- a/cli.py +++ b/cli.py @@ -145,8 +145,6 @@ async def main(ctx): "bot.extensions.suggestions", "bot.extensions.tags", "bot.extensions.youtube", - "bot.cogs._help", - "bot.cogs.clashofcode", "bot.cogs.roles", )