Skip to content

Commit

Permalink
[NotSoBot] Fix glitch that broke when I deleted a variable by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Jul 15, 2024
1 parent f7d9cc8 commit be3d88d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notsobot/notsobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,7 @@ def do_glitch(self, b, amount, seed, iterations):
img_bytes = BytesIO()
image.save(img_bytes, format="JPEG")
img_bytes.seek(0)
final = BytesIO()
image = jpglitch.Jpeg(bytearray(img_bytes.getvalue()), amount, seed, iterations)
final.name = self.random_filename(True, "jpg")
image.save_image(final)
Expand Down

0 comments on commit be3d88d

Please sign in to comment.