From 5f7145c583b4fb5677c3610eaa773a66dbeee112 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Fri, 26 Apr 2019 04:20:13 -0400 Subject: [PATCH] preset cleanup --- ASCII/plugin.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 00d4f8b..d55c919 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -272,7 +272,7 @@ class ASCII(callbacks.Plugin): delta_e = delta_E_CMC(c1, c2) elif speed == 'slowest': delta_e = delta_E_CIE2000(c1, c2) - else: + elif speed == 'insane': delta_e = delta_E_DIN99(c1, c2) return delta_e @@ -285,7 +285,9 @@ class ASCII(callbacks.Plugin): self.colors = 16 else: self.colors = 83 - if 'fast' in optlist: + if 'faster' in optlist: + speed = 'faster' + elif 'fast' in optlist: speed = 'fast' elif 'slow' in optlist: speed = 'slow' @@ -406,7 +408,7 @@ class ASCII(callbacks.Plugin): except: return #irc.reply("Error. Did you set a valid Paste.ee API Key? https://paste.ee/account/api") - img = wrap(img,[getopts({'w':'int', 'invert':'', 'fast':'', 'slow':'', 'slower':'', 'slowest':'', 'insane':'', '16':'', 'delay':'float', 'dither':''}), ('text')]) + img = wrap(img,[getopts({'w':'int', 'invert':'', 'fast':'', 'faster':'', 'slow':'', 'slower':'', 'slowest':'', 'insane':'', '16':'', 'delay':'float', 'dither':''}), ('text')]) def ansi(self, irc, msg, args, optlist, url): """[--w ] [--16] @@ -417,7 +419,9 @@ class ASCII(callbacks.Plugin): self.colors = 16 else: self.colors = 83 - if 'fast' in optlist: + if 'faster' in optlist: + speed = 'faster' + elif 'fast' in optlist: speed = 'fast' elif 'slow' in optlist: speed = 'slow' @@ -538,7 +542,7 @@ class ASCII(callbacks.Plugin): except: return #irc.reply("Error. Did you set a valid Paste.ee API Key? https://paste.ee/account/api") - ansi = wrap(ansi, [getopts({'w':'int', 'invert':'', 'fast':'', 'slow':'', 'slower':'', 'slowest':'', 'insane':'', '16':'', 'delay':'float', 'dither':''}), ('text')]) + ansi = wrap(ansi, [getopts({'w':'int', 'invert':'', 'fast':'', 'faster':'', 'slow':'', 'slower':'', 'slowest':'', 'insane':'', '16':'', 'delay':'float', 'dither':''}), ('text')]) def fontlist(self, irc, msg, args): """