From 7cf2a8355e5192619c9588f3ff656d321e961750 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Wed, 28 Jun 2023 16:05:08 -0400 Subject: [PATCH] Code cleanup --- img2irc.py | 14 +++++++++----- scroll.py | 13 ++++++++++++- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/img2irc.py b/img2irc.py index 4561316..86de956 100644 --- a/img2irc.py +++ b/img2irc.py @@ -2,13 +2,17 @@ # Scroll IRC Art Bot - Developed by acidvegas in Python (https://git.acid.vegas/scroll) ''' -Props: - - forked idea from malcom's img2irc (https://github.com/waveplate/img2irc) - - big props to wrk (wr34k) for forking this one - - brightness/contrast/effects & more added by acidvegas +Pull Request: + - https://github.com/ircart/scroll/pull/3 -pull request: https://github.com/ircart/scroll/pull/3 + Props: + - forked idea from malcom's img2irc (https://github.com/waveplate/img2irc) + - big props to wrk (wr34k) for forking this one + - brightness/contrast/effects & more added by acidvegas +Interesting: + - https://pythonexamples.org/pillow-image-blend/ + - https://pythonexamples.org/pillow-access-rgb-channels-of-image/ ''' import io diff --git a/scroll.py b/scroll.py index e407acb..563411b 100644 --- a/scroll.py +++ b/scroll.py @@ -84,7 +84,18 @@ class Bot(): self.loops = dict() self.host = '' self.playing = False - self.settings = {'flood':1, 'ignore':'big,birds,doc,gorf,hang,nazi,pokemon', 'lines':500, 'msg':0.03, 'paste':True, 'png_brightness':0, 'png_contrast':0, 'png_effect':None, 'png_palette':'RGB99', 'png_width':80, 'results':25} + self.settings = { + 'flood' : 1, + 'ignore' : 'big,birds,doc,gorf,hang,nazi,pokemon', + 'lines' : 500, + 'msg' : 0.03, + 'paste' : True, + 'png_brightness' : 0, + 'png_contrast' : 0, + 'png_effect' : None, + 'png_palette' : 'RGB99', + 'png_width' : 80, + 'results' : 25} self.slow = False self.reader = None self.writer = None