1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-07 08:46:45 +00:00

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) # Scroll IRC Art Bot - Developed by acidvegas in Python (https://git.acid.vegas/scroll)
''' '''
Props: Pull Request:
- forked idea from malcom's img2irc (https://github.com/waveplate/img2irc) - https://github.com/ircart/scroll/pull/3
- 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 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 import io

View File

@ -84,7 +84,18 @@ class Bot():
self.loops = dict() self.loops = dict()
self.host = '' self.host = ''
self.playing = False 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.slow = False
self.reader = None self.reader = None
self.writer = None self.writer = None