From b4b6aa8742bba6b1a03713cb7aaa06c61b644a01 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 12 May 2022 16:55:00 -0700 Subject: [PATCH] fixing emoji --- app/cogs/server_utils.py | 23 +++++++++++------------ helm/values.yaml | 2 +- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index 049312dc..1511ce3d 100644 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -46,19 +46,18 @@ class ServerUtils(commands.Cog): emoji_staging = "/tmp/emoji" try: - await ctx.reply( - "emoji successfully uploaded! Heres how it looks in a sentence {}\nUse it with `:{}:`".format( - await ctx.message.guild.create_custom_emoji( - name=emoji_name, - image=open( - core_utils.download_image(url, emoji_staging), "rb" - ).read(), - ), - emoji_name, - ) + core_utils.download_image(url, emoji_staging) + emoji_id = await ctx.message.guild.create_custom_emoji( + name=emoji_name, + image=open(emoji_staging, "rb").read(), + ) + await ctx.send( + "Emoji created! heres how it looks in a sentence\n\n%s" % emoji_id + ) + except Exception as e: + await ctx.send( + "I wasnt able to upload that image as an emoji. Sorry\n %s" % e ) - except Exception: - await ctx.reply("I wasnt able to upload that image as an emoji. Sorry") os.remove(emoji_staging) return diff --git a/helm/values.yaml b/helm/values.yaml index 1eab3459..b5bcf783 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "194" + tag: "195" repository: ldooks/dragon-bot pullPolicy: IfNotPresent