diff --git a/plugins/highlight_plugin.py b/plugins/highlight_plugin.py index 39ea0af..6652345 100644 --- a/plugins/highlight_plugin.py +++ b/plugins/highlight_plugin.py @@ -38,19 +38,19 @@ class Plugin: return '\x0f' @command(permission='view',public=True,show_in_help_list=True) - def h1c(self, mask, target, *args, **kwargs): - """h1c // chosen color contrasting. color choices are 0-15. usage: ?h1r c1 c2 c3 c4 nickname message. example: ?h1c 8,12,9,13 dr1p make me a ham sammich - %%h1c ... + def h1c(self, mask, target, args): + """h1c // cchosen color contrasting. color choices are 0-15. usage: ?h1r c1 c2 c3 c4 nickname message. example: ?h1c 8,12,9,13 dr1p make me a ham sammich + %%h1c ... """ try: - noise = ' '.join(args['']) + noise = ' '.join(args['']).strip() _colors=noise.split()[0] _nik = noise.split()[1] _msg = ' '.join(noise.split()[2:]) - c1=_colors.split(',')[0] - c2=_colors.split(',')[1] - c3=_colors.split(',')[2] - c4=_colors.split(',')[3] + c1=int(_colors.split(',')[0]) + c2=int(_colors.split(',')[1]) + c3=int(_colors.split(',')[2]) + c4=int(_colors.split(',')[3]) b1=c1;b2=c2;b3=c3;b4=c4; c1=self.__color(hex(c1)[2:]) c2=self.__color(hex(c2)[2:]) @@ -65,12 +65,12 @@ class Plugin: self.bot.privmsg(target,self.bot.emo(msg)) @command(permission='view',public=True,show_in_help_list=True) - def h1r(self, mask, target, *args, **kwargs): + def h1r(self, mask, target, args): """h1r // randomized color contrasting. usage: ?h1r nickname message - %%h1r ... + %%h1r ... """ try: - noise = ' '.join(args['']) + noise = ' '.join(args['']).strip() _nik = noise.split()[0] _msg = ' '.join(noise.split()[1:]) c1=random.randint(0,15) @@ -90,14 +90,14 @@ class Plugin: msg=f"{mask.nick}: highlight_plugin:h1r - error: {e}" self.bot.privmsg(target,self.bot.emo(msg)) - @command(permission='view',public=True,show_in_help_list=True) def hl(self, mask, target, args): - """highlight user c n message ?highlight . c is 16 colors as 0-f. loop is flood message. e.g. ?hl dr1p f 6 phuq. highlights dr1p in magenta flooding 6 times saying phuq - %%hl ... + """highlight user c n message ?highlight . c is 16 colors as 0-f. loop is flood message. e.g. ?hl dr1p f 6 phuq. +highlights dr1p in magenta flooding 6 times saying phuq + %%hl ... """ try: - noise = ' '.join(args['']) + noise = ' '.join(args['']).strip() _nik = noise.split()[0] _col = noise.split()[1] _cnt = noise.split()[2] @@ -110,5 +110,3 @@ class Plugin: except Exception as e: msg=f"{mask.nick}: highlight_plugin:highlight/hl - error: {e}" self.bot.privmsg(target,self.bot.emo(msg)) - -