A Sopel plugin to make things RAINBOW COLORED.
Project description
sopel-rainbow
A Sopel plugin to make things RAINBOW COLORED.
Configuration
By default, sopel-rainbow
outputs colors in the "standard" rainbow order
,
ROYGBIV, subject to receiving clients' use of the customary meanings for IRC
color codes 0-15. If set explicitly in your Sopel config file, this default
value would look like:
[rainbow]
order =
4
7
8
3
12
2
6
If you want to get creative (or cater to a community with shared color norms
that differ from the "de facto" values established by mIRC and friends)
override the order
with your own list of numeric codes:
[rainbow]
order = # Americans and French can fight over this one
4
0
2
Starting the rainbow at the beginning of the order
every time is also
default behavior. If you want the rainbow to start at a random place every
time instead, set the Boolean option random_start
to yes
or on
:
[rainbow]
random_start = on
Dependencies
Only Sopel itself, version 7.0 or higher.
If installed on a bot using Sopel 7.1+, sopel-rainbow
will strip control
codes from the input text before applying the rainbow colors. (Sopel 7.0.x
does not offer this feature, so feeding formatted text into the .rainbow
command might yield unexpected results.)
This version of sopel-rainbow
will not work with Sopel 9.0+. A future
release will correct this, sometime before Sopel 9 becomes stable.
Changelog
The brief, illustrious history of sopel-rainbow
, a silly little plugin
spawned from a tongue-in-cheek
upstream issue.
sopel-rainbow 0.1.1
Fixed:
- Empty input raises exception on upcoming Sopel 7.1 release (#2)
sopel-rainbow 0.1.0
Initial release, featuring:
.rainbow
command- Configurable color order
- Optional randomized start point
- Control-code stripping on Sopel 7.1+
- Compatible with Sopel 7.0 through (planned) 8.x releases
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sopel-rainbow-0.1.1.tar.gz
.
File metadata
- Download URL: sopel-rainbow-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e4f88cb04f7bfa444d51b05c84e7fb4444a81ed6176a46dc8868abf60e16f0 |
|
MD5 | 344510f5b99a68895b9e90326f1615d7 |
|
BLAKE2b-256 | 3deab015d777105522763f8037eb6d922e0fb425ada0a5c8000c9ee536e922ee |