1
0
Fork 0
mirror of synced 2024-09-21 12:02:52 +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: if '.gif' in url:
filename = 'avatar.gif' filename = 'avatar.gif'
else: else:
filename = 'avatar.webp' filename = 'avatar.jpg'
file = utils.convert_to_jpeg(file) file = utils.convert_to_jpeg(file)
await ctx.send(file=file, filename=filename) await ctx.send(file=file, filename=filename)
else: else:

View file

@ -65,7 +65,7 @@ class Roulette:
else: else:
game = self.start_game(ctx.message.guild, time) game = self.start_game(ctx.message.guild, time)
if game: 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)) " Type {}roulette to join this roulette...good luck~".format(game.time_left, ctx.prefix))
else: else:
await ctx.send("There is already a roulette game running on this server!") await ctx.send("There is already a roulette game running on this server!")