Useless plugin done
This commit is contained in:
parent
96cf435b3c
commit
0a119dbec3
|
@ -18,14 +18,17 @@ class Useless(Plugin):
|
||||||
|
|
||||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :(?P<msg>huehuehue)$')
|
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :(?P<msg>huehuehue)$')
|
||||||
def huehuehue(self, channel: str, msg: str):
|
def huehuehue(self, channel: str, msg: str):
|
||||||
|
"""Returns a huehuehue when someone writes it."""
|
||||||
self.bot.privmsg(channel, msg)
|
self.bot.privmsg(channel, msg)
|
||||||
|
|
||||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :same$')
|
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :same$')
|
||||||
def same(self, channel: str):
|
def same(self, channel: str):
|
||||||
|
"""Returns a plain same when a user writes same."""
|
||||||
self.bot.privmsg(channel, 'same')
|
self.bot.privmsg(channel, 'same')
|
||||||
|
|
||||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :\[(?P<msg>.*)\]$')
|
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<channel>\S+) :\[(?P<msg>.*)\]$')
|
||||||
def intensifies(self, channel: str, msg: str):
|
def intensifies(self, channel: str, msg: str):
|
||||||
|
"""String with brackets around will be returned with INTENSIFIES."""
|
||||||
self.bot.privmsg(channel, '\x02[{msg} INTENSIFIES]'.format(
|
self.bot.privmsg(channel, '\x02[{msg} INTENSIFIES]'.format(
|
||||||
msg=msg.upper()))
|
msg=msg.upper()))
|
||||||
|
|
||||||
|
@ -103,7 +106,7 @@ class Useless(Plugin):
|
||||||
"""
|
"""
|
||||||
last = 0
|
last = 0
|
||||||
word = []
|
word = []
|
||||||
for i, char in enumerate(' '.join(args.get('<word>'))):
|
for char in ' '.join(args.get('<word>')):
|
||||||
if char != ' ':
|
if char != ' ':
|
||||||
char = self._rainbow(last, char)
|
char = self._rainbow(last, char)
|
||||||
last += 1
|
last += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user