Code cleanup

This commit is contained in:
Dionysus 2023-06-28 16:05:08 -04:00
parent 89dd0942fb
commit 7cf2a8355e
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 21 additions and 6 deletions

View File

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

View File

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