From fecff7925c7a4c796c79cfc617adf0888f233431 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Wed, 23 May 2018 22:06:10 -0800 Subject: [PATCH] Get trout by id instead of name --- exts/fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exts/fun.py b/exts/fun.py index c48e64a..7833e1f 100644 --- a/exts/fun.py +++ b/exts/fun.py @@ -65,7 +65,7 @@ class Fun: @commands.command() @commands.cooldown(1, 5, type=commands.BucketType.user) async def slap(self, ctx, member: discord.Member): - trout = await self.bot.db_con.fetchval("select code from geeksbot_emojis where name = 'trout'") + trout = await self.bot.db_con.fetchval("select code from geeksbot_emojis where id = 449083238766477312") if member.id == self.bot.user.id and ctx.author.id != owner_id: await ctx.send(f'You rolled a Critical Fail...\nThe trout bounces off and rebounds on the attacker.') await ctx.send(f'{ctx.author.mention} '