mirror of
git://git.acid.vegas/scroll.git
synced 2024-11-24 17:16:39 +00:00
Code cleanup
This commit is contained in:
parent
89dd0942fb
commit
7cf2a8355e
10
img2irc.py
10
img2irc.py
@ -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:
|
||||||
|
- https://github.com/ircart/scroll/pull/3
|
||||||
|
|
||||||
|
Props:
|
||||||
- forked idea from malcom's img2irc (https://github.com/waveplate/img2irc)
|
- forked idea from malcom's img2irc (https://github.com/waveplate/img2irc)
|
||||||
- big props to wrk (wr34k) for forking this one
|
- big props to wrk (wr34k) for forking this one
|
||||||
- brightness/contrast/effects & more added by acidvegas
|
- brightness/contrast/effects & more added by acidvegas
|
||||||
|
|
||||||
pull request: https://github.com/ircart/scroll/pull/3
|
Interesting:
|
||||||
|
- https://pythonexamples.org/pillow-image-blend/
|
||||||
|
- https://pythonexamples.org/pillow-access-rgb-channels-of-image/
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import io
|
import io
|
||||||
|
13
scroll.py
13
scroll.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user