mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix file generator
This commit is contained in:
parent
6bcc2d4e14
commit
3f93a04ae5
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class OtherCog(commands.Cog):
|
|||
size = max(min(int(size_in_megabytes * 1024 * 1024), ctx.guild.filesize_limit), 1)
|
||||
|
||||
file = io.BytesIO()
|
||||
file.write(os.urandom(size))
|
||||
file.write(os.urandom(size - 1024))
|
||||
file.seek(0)
|
||||
return await ctx.respond(file=discord.File(file, file_name))
|
||||
|
||||
|
|
Loading…
Reference in a new issue