fixing emoji

This commit is contained in:
Luke Robles 2022-05-12 16:55:00 -07:00
parent 4ca6aa2df0
commit 835a0839be
2 changed files with 12 additions and 13 deletions

View File

@ -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

View File

@ -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