diff --git a/config.json b/config.json index 55c1e0e..c0327d5 100644 --- a/config.json +++ b/config.json @@ -29,6 +29,7 @@ }, "irc3.plugins.command.masks": { "*!ceo@cocaine-import.agency": "all_permissions", + "*!ceo@unterschicht.tv": "all_permissions", "*": "view" } } diff --git a/nxy/bot.py b/nxy/bot.py index 1757428..1217052 100644 --- a/nxy/bot.py +++ b/nxy/bot.py @@ -24,7 +24,7 @@ CFG_DEV = { } -# TODO: imdb, youtube, intensifies, pay, owe, rape (owe) +# TODO: imdb, youtube, intensifies, pay, owe, rape (owe), ddg, regex, tell def main(cfg_file): load_dotenv('.env') with open(cfg_file, 'r') as fp: diff --git a/nxy/plugins/useless.py b/nxy/plugins/useless.py index 79fa430..d661b80 100644 --- a/nxy/plugins/useless.py +++ b/nxy/plugins/useless.py @@ -2,6 +2,7 @@ from docopt import Dict as DocOptDict from irc3.plugins.command import command from irc3.utils import IrcString +from irc3.dec import event import random from . import Plugin @@ -11,6 +12,13 @@ RAINBOW = ('maroon', 'red', 'orange', 'yellow', 'ltgreen', 'green', 'teal', 'ltblue', 'blue', 'purple', 'pink') RAINBOW_LEN = len(RAINBOW) +GNU_LINUX = """I'd Just Like To Interject For A Moment. What you're referring + to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, + GNU plus Linux. Linux is not an operating system unto itself, but rather + another free component of a fully functioning GNU system made useful by the + GNU corelibs, shell utilities and vital system components comprising a full OS + as defined by POSIX.""" + # noinspection PyUnusedLocal class Useless(Plugin): @@ -18,6 +26,33 @@ class Useless(Plugin): 'irc3.plugins.command', ] + @event(r'(?i)^:.* PRIVMSG (?P.*) :(?.*) :(?Phuehuehue)$') + def huehuehue(self, channel: str, data: str): + self.bot.privmsg(channel, data) + + @event(r'(?i)^:.* PRIVMSG (?P.*) :same$') + def same(self, channel: str): + self.bot.privmsg(channel, 'same') + + @event(r'(?i)^:.* PRIVMSG (?P.*) :\[(?P.*)\]$') + def intensifies(self, channel: str, data: str): + self.bot.privmsg(channel, fmt('{bold}[{data} INTENSIFIES]', + data=data.upper())) + + @command + def storyofpomfface(self, mask: IrcString, channel: IrcString, + args: DocOptDict): + """Story of pomf face command. + %%storyofpomfface + """ + for face in (':O C==3', ':OC==3', ':C==3', ':C=3', ':C3', ':3'): + self.bot.privmsg(channel, face) + @command def jn(self, mask: IrcString, channel: IrcString, args: DocOptDict) -> str: """Yes or no command. @@ -44,6 +79,17 @@ class Useless(Plugin): return fmt('{color}{red}♥♡❤♡♥{reset} {nick} {color}{red}♥♡❤♡♥', nick=args['']) + @command + def hack(self, mask: IrcString, channel: IrcString, + args: DocOptDict) -> str: + """Hack command. + %%hack [] + """ + nick = args.get('') or '' + if nick: + nick = ' {nick}'.format(nick=nick) + return 'hacking{nick}...'.format(nick=nick) + @command def gay(self, mask: IrcString, channel: IrcString, args: DocOptDict) -> str: