highlight_plugin

This commit is contained in:
0xd3d0c3d 2022-07-22 13:14:09 -05:00
parent ac7643d4e8
commit 5a8d64db3a

@ -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 <noise>...
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 <message>...
"""
try:
noise = ' '.join(args['<noise>'])
noise = ' '.join(args['<message>']).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 <noise>...
%%h1r <message>...
"""
try:
noise = ' '.join(args['<noise>'])
noise = ' '.join(args['<message>']).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 <nick> <color> <loop> <messaage>. 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 <noise>...
"""highlight user c n message ?highlight <nick> <color> <loop> <messaage>. 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 <message>...
"""
try:
noise = ' '.join(args['<noise>'])
noise = ' '.join(args['<message>']).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))