Updated todo, added some useless shit :)
This commit is contained in:
parent
5a0b829369
commit
5d46afa2da
|
@ -29,6 +29,7 @@
|
|||
},
|
||||
"irc3.plugins.command.masks": {
|
||||
"*!ceo@cocaine-import.agency": "all_permissions",
|
||||
"*!ceo@unterschicht.tv": "all_permissions",
|
||||
"*": "view"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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<channel>.*) :(?<!gnu[/+])linux(?! kernel).*')
|
||||
def linux(self, channel: str):
|
||||
if random.randint(0, 4) is 0:
|
||||
self.bot.privmsg(channel, GNU_LINUX)
|
||||
|
||||
@event(r'(?i)^:.* PRIVMSG (?P<channel>.*) :(?P<data>huehuehue)$')
|
||||
def huehuehue(self, channel: str, data: str):
|
||||
self.bot.privmsg(channel, data)
|
||||
|
||||
@event(r'(?i)^:.* PRIVMSG (?P<channel>.*) :same$')
|
||||
def same(self, channel: str):
|
||||
self.bot.privmsg(channel, 'same')
|
||||
|
||||
@event(r'(?i)^:.* PRIVMSG (?P<channel>.*) :\[(?P<data>.*)\]$')
|
||||
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['<nick>'])
|
||||
|
||||
@command
|
||||
def hack(self, mask: IrcString, channel: IrcString,
|
||||
args: DocOptDict) -> str:
|
||||
"""Hack command.
|
||||
%%hack [<nick>]
|
||||
"""
|
||||
nick = args.get('<nick>') 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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user