fixing emoji
This commit is contained in:
parent
044653e33c
commit
5530de2857
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user