From db9cb40b77bd4fb40d61e99d4ba2aa69f8d94576 Mon Sep 17 00:00:00 2001 From: leo60228 Date: Fri, 22 Feb 2019 16:56:14 -0500 Subject: [PATCH 1/2] =?UTF-8?q?Add=20Reswitched=20Silver=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/meme.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cogs/meme.py b/cogs/meme.py index 235b15e..8837a10 100644 --- a/cogs/meme.py +++ b/cogs/meme.py @@ -50,6 +50,15 @@ class Meme: """Gives a star to a user""" await ctx.send(f"{user.mention} gets a :star:, yay!") + @commands.check(check_if_staff_or_ot) + @commands.command(hidden=True, aliases=["reswitchedsilver", "silv3r", + "reswitchedsilv3r"]) + async def silver(self, ctx, user: discord.Member): + """Gives a user ReSwitched Silver™""" + await ctx.send(f"Here's your ReSwitched Silver™, {user.mention}!") + await ctx.send("https://cdn.discordapp.com/emojis/" + "548623626916724747.png?v=1") + @commands.check(check_if_staff_or_ot) @commands.command(hidden=True) async def btwiuse(self, ctx): From 811e383134d1afb41d88c4c185a56c2efd203b9e Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sat, 23 Feb 2019 16:13:00 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Use=20embed=20for=20ReSwitched=20Silver?= =?UTF-8?q?=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/meme.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cogs/meme.py b/cogs/meme.py index 8837a10..d47814b 100644 --- a/cogs/meme.py +++ b/cogs/meme.py @@ -55,9 +55,12 @@ class Meme: "reswitchedsilv3r"]) async def silver(self, ctx, user: discord.Member): """Gives a user ReSwitched Silver™""" - await ctx.send(f"Here's your ReSwitched Silver™, {user.mention}!") - await ctx.send("https://cdn.discordapp.com/emojis/" - "548623626916724747.png?v=1") + embed = discord.Embed(title="ReSwitched Silver!", + description=f"Here's your ReSwitched Silver™," + f"{user.mention}!") + embed.set_thumbnail(url="https://cdn.discordapp.com/emojis/" + "548623626916724747.png?v=1") + await ctx.send(embed=embed) @commands.check(check_if_staff_or_ot) @commands.command(hidden=True)