Set the filename as the correct extension
This commit is contained in:
parent
66cba8a0a7
commit
503f710a4b
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ class Interaction:
|
|||
if '.gif' in url:
|
||||
filename = 'avatar.gif'
|
||||
else:
|
||||
filename = 'avatar.webp'
|
||||
filename = 'avatar.jpg'
|
||||
file = utils.convert_to_jpeg(file)
|
||||
await ctx.send(file=file, filename=filename)
|
||||
else:
|
||||
|
|
|
@ -65,7 +65,7 @@ class Roulette:
|
|||
else:
|
||||
game = self.start_game(ctx.message.guild, time)
|
||||
if game:
|
||||
await ctx.send("A new roulette game has just started! A random entrant will be kicked in {} minutes"\
|
||||
await ctx.send("A new roulette game has just started! A random entrant will be kicked in {} minutes."\
|
||||
" Type {}roulette to join this roulette...good luck~".format(game.time_left, ctx.prefix))
|
||||
else:
|
||||
await ctx.send("There is already a roulette game running on this server!")
|
||||
|
|
Loading…
Reference in a new issue