scroll

- irc bot to play ascii art
git clone git://git.acid.vegas/scroll.git
Log | Files | Refs | Archive | README | LICENSE

commit 7cf2a8355e5192619c9588f3ff656d321e961750
parent 89dd0942fbbc8a318135f89bd0628c79477c4d02
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 28 Jun 2023 16:05:08 -0400

Code cleanup

Diffstat:
Mimg2irc.py | 14+++++++++-----
Mscroll.py | 13++++++++++++-

2 files changed, 21 insertions(+), 6 deletions(-)

diff --git 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
@@ -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