mIRC art editor & tools (for EFnet #MiRCART)
Go to file
Lucio Andrés Illanes Albornoz 98eae4257c pngbot.py:IrcBot.clientNextTimeout: moved from IrcMiRCARTBot.
pngbot.py:IrcBot.connect(): close() & return False given timeout and True given success.
pngbot.py:IrcBot.readline(): honour clientNextTimeout and return "" given timer expiry.
pngbot.py:IrcBot.sendline(): ignore clientNextTimeout.
pngbot.py:IrcMiRCARTBot.connect(): honour & pass IrcBot.connect() return value.
pngbot.py:IrcMiRCARTBot.dispatch{Join,Kick,Timer}(): (re)set clientNextTimeout to time.time() + 15 seconds.
pngbot.py:IrcMiRCARTBot.dispatch(): dispatch expired timers prior to calling readline() & honour "" return value.
pngbot.py:main(): honour IrcMiRCARTBot.connect() return value & delay reconnection by 15 seconds.
2018-01-03 02:24:58 +01:00
.gitignore .gitignore: ignore __pycache__/. 2018-01-02 20:50:40 +01:00
DejaVuSansMono.ttf DejaVuSansMono.ttf: added to repository for convenience. 2018-01-02 16:59:35 +01:00
README.md README.md: update usage information. 2018-01-02 23:45:01 +01:00
mirc2png.py mirc2png.py:MiRCART.parseAsChar(): implement ^V (reverse) by swapping {background,foreground} colours. 2018-01-03 01:25:46 +01:00
pngbot.py pngbot.py:IrcBot.clientNextTimeout: moved from IrcMiRCARTBot. 2018-01-03 02:24:58 +01:00

README.md

mirc2png -- convert ASCII w/ mIRC control codes to monospaced PNG (for EFnet #MiRCART)

  • Prerequisites: python3 && python3-pil (&& python3-{json,requests,urllib3} for pngbot.py) on Debian-family Linux distributions
  • mirc2png.py usage: mirc2png.py <MiRCART input file pathname> <PNG image output file pathname> [<Font file pathname; defaults to DejaVuSansMono.ttf>] [<Font size; defaults to 11>]
  • pngbot.py usage: pngbot.py <IRC server hostname> [<IRC server port; defaults to 6667>] [<IRC bot nick name; defaults to pngbot>] [<IRC bot user name; defaults to pngbot>] [<IRC bot real name; defaults to pngbot>] [<IRC bot channel name; defaults to #MiRCART>]