blob: c1206b048e84d4bc29add22a1766e955ad75fbab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# salvador
Image-to-IRC art bot. Converts an image URL into mIRC colour art using
half-block characters and Floyd-Steinberg dithering against the 99-colour
mIRC palette.
## Dependencies
```
pip install Pillow
```
## Commands
| Command | Description |
|---------|-------------|
| `!draw <url>` | Render image at default height (6 lines) |
| `!draw <lines> <url>` | Render at custom height (4-12 lines) |
The image is fetched, resized to fit within 60 chars wide, dithered to the
mIRC palette, and output line by line with a 0.4s flood delay between lines.
Images up to 5 MB are accepted; the Content-Type must be `image/*`.
### Admin (owner)
| Command | Description |
|---------|-------------|
| `!join #channel` | Join a channel |
| `!part [#channel]` | Leave a channel |
| `!chans` | List channels |
| `!help` | Show usage (PM) |
|