scroll- irc bot to play ascii art |
git clone git://git.acid.vegas/scroll.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 9ccfe4aa8492ce4f218a3edb9da6a9d81fe2cd0e
parent b6abd6d6f9809341885c13ae7a8a61f64f182ee7 Author: acidvegas <acid.vegas@acid.vegas> Date: Wed, 28 Jun 2023 14:19:35 -0400 Added missing alert on settings change and fixed missing palette argument Diffstat:
|
2 files changed, 2 insertions(+), 1 deletion(-) | |
diff --git a/img2irc.py b/img2irc.py @@ -92,7 +92,7 @@ def convert_image(image, max_line_len, img_width, palette): if len(buf[-1].encode('utf-8', 'ignore')) > max_line_len: if img_width - 5 < 10: raise Exception('internal error') - return convert_image(image, max_line_len, img_width-5) + return convert_image(image, max_line_len, img_width-5, palette) return buf def hex_to_rgb(color): |