mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-06 19:43:51 -05:00
102 lines
3.7 KiB
Markdown
102 lines
3.7 KiB
Markdown
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=T8E56M6SP9JH2)
|
|
|
|
|
|
<b>ASCII Art Plugin</b><br>
|
|
Convert text to ASCII art or image URLs to ASCII/ANSI art.
|
|
|
|
Requires Limnoria https://github.com/ProgVal/Limnoria and Python3
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
config protocols.irc.throttletime 0.0
|
|
config plugins.ascii.delay 0.5
|
|
```
|
|
If you want delays < 1.0 seconds then disable Limnoria's throttling and use this plugin's delay option. 0.5 is 2 lines per second for example. You can also use --delay with commands and override the delay with your own. Default delay config can
|
|
be set per channel. Set a value that won't get you kicked.
|
|
|
|
```
|
|
!cq
|
|
@cq
|
|
.cq
|
|
etc.
|
|
```
|
|
Stop the scroll. cq command must be prefixed by a command character. This command can not be renamed.
|
|
|
|
ASCII Weather from wttr.in
|
|
```
|
|
wttr <location>
|
|
wttr moon
|
|
wttr --16 <location>/moon
|
|
```
|
|
Use --16 for 16 colors. Defaults to 99 color extended.
|
|
|
|
Support for the Paste.ee API to save art conversions for later use.
|
|
Get an API key from https://paste.ee/account/api (FREE. Not required to use plugin, disabled by default).
|
|
```
|
|
config plugins.ascii.pasteAPI <PASTE.EE_API_KEY_HERE> (set paste.ee API key)
|
|
config channel plugins.ascii.pasteEnable <True/False> (enable/disable paste.ee links)
|
|
```
|
|
|
|
Text-to-ASCII Art (split lines with | ex. ascii|art for large fonts):
|
|
```
|
|
ascii <text> (convert <text> to ascii art)
|
|
ascii --font <font> <text> (to use chosen <font>)
|
|
ascii --color <color> <text> (to set a foreground <color>)
|
|
ascii --color <color1,color2> <text> (to set a foreground/background <color>)
|
|
fontlist (get list of availble <fonts>)
|
|
```
|
|
|
|
Image URL to ASCII/ANSI Art:
|
|
```
|
|
img <url> (convert an image <url> to ascii art using 99 color palette)
|
|
img --16 <url> (convert image to ascii art using 16 color palette)
|
|
img --invert <url> (invert the ascii luminance character palette)
|
|
img --chars "TEXT" <url> (convert image to colorized custom text)
|
|
img --bg <0-99> --chars " " <url> (convert image to colorized space block)
|
|
img --bg <0-99> <url> (set a background color)
|
|
img --w <###> <url> (how many columns wide. defauls to 100)
|
|
```
|
|
```
|
|
ansi <url> (convert an <url> to ansi shader blocks using 99 color palette)
|
|
ansi --16 <url> (convert <url> to ansi shader blocks using 16 color palette)
|
|
ansi --w <###> <url> (how many columns wide. defauls to 80)
|
|
```
|
|
Speed Presets. Defaults to slowest. It's actually pretty fast.
|
|
```
|
|
img/ansi --faster <url> (use Euclidean color difference algorithm)
|
|
img/ansi --fast <url> (use cie1976 color difference algorithm)
|
|
img/ansi --slow <url> (use cie1994 color difference algorithm)
|
|
img/ansi --slower <url> (use cieCMC color difference algorithm)
|
|
img/ansi --slowest <url> (use cie2000 color difference algorithm)
|
|
```
|
|
Different presets will yeild slightly different results, try them if you want. Slowest (the default)
|
|
is usually pretty good.
|
|
|
|
Scroll ASCII/ANSI Art text files
|
|
```
|
|
scroll <url> (playback of ansi/ascii art .txt files from the web)
|
|
```
|
|
|
|
THE COMMANDS BELOW REQUIRE ADDITIONAL INSTALLS AND ARE OPTIONAL. YOU WILL NEED TO VISIT THE GITHUB
|
|
PAGES BELOW AND INSTALL THE PROGRAMS IF YOU WANT TO USE THESE COMMANDS.
|
|
|
|
ANSI Art to IRC converrter:
|
|
```
|
|
a2m <url> (conversion and playback of ansi art .ans files from the web.)
|
|
```
|
|
a2m command requires A2M https://github.com/tat3r/a2m (optional. disable command if not installing a2m.)
|
|
|
|
Picture to Unicode
|
|
```
|
|
p2u <url>
|
|
```
|
|
p2u command requires p2u https://git.trollforge.org/p2u/about/ (optional. disable command if not installing p2u.)
|
|
|
|
TDFiglet. Text to tdfiglet
|
|
```
|
|
tdf [-f <font>] <text> (select font with -f <fontname>)
|
|
fonts (list of figlet fonts)
|
|
```
|
|
tdf command requires tdfiglet https://github.com/tat3r/tdfiglet (optional. disable command if not installing tdfiglet.)
|