From 09323e54bc797a0d32143b2c5c8ac7d19ce71ed0 Mon Sep 17 00:00:00 2001 From: Abigail Gold Date: Sat, 4 Jan 2020 01:49:37 -0500 Subject: [PATCH] add command to link to the issue tracker --- exts/base.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/exts/base.py b/exts/base.py index 3f0e356..57e2713 100644 --- a/exts/base.py +++ b/exts/base.py @@ -142,6 +142,20 @@ class BaseCog(commands.Cog): await ctx.send(embed=embed) + @commands.command(name="issue") + async def _issue(self, ctx: commands.Context): + """Shows how to create an issue for the bot.""" + embed = cmn.embed_factory(ctx) + embed.title = "Found a bug? Have a feature request?" + embed.description = ("Submit an issue on the [issue tracker]" + "(https://github.com/classabbyamp/discord-qrm2/issues)!") + await ctx.send(embed=embed) + + @commands.command(name="bruce", hidden=True) + async def _b_issue(self, ctx: commands.Context): + """Shows how to create an issue for the bot.""" + await ctx.invoke(self._issue) + @commands.command(name="echo", aliases=["e"], hidden=True) @commands.check(cmn.check_if_owner) async def _echo(self, ctx: commands.Context, channel: commands.TextChannelConverter, *, msg: str):