1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Set the filename as the correct extension

This commit is contained in:
Phxntxm 2017-04-01 16:12:44 -05:00
parent 66cba8a0a7
commit 503f710a4b
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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!")