diff --git a/config.json b/config.json index e3a5b4e..95eead6 100644 --- a/config.json +++ b/config.json @@ -14,7 +14,7 @@ "nxy.plugins.admin", "nxy.plugins.bitcoin", "nxy.plugins.ctcp", - "nxy.plugins.kernel", + "nxy.plugins.linux", "nxy.plugins.mcmaniac", "nxy.plugins.quotes", "nxy.plugins.seen", diff --git a/nxy/plugins/kernel.py b/nxy/plugins/linux.py similarity index 54% rename from nxy/plugins/kernel.py rename to nxy/plugins/linux.py index 62bbdaf..59ebb1a 100644 --- a/nxy/plugins/kernel.py +++ b/nxy/plugins/linux.py @@ -1,15 +1,32 @@ # -*- coding: utf-8 -*- +import random + +import irc3 import feedparser + from docopt import Dict as DocOptDict from irc3.plugins.command import command from irc3.utils import IrcString from . import Plugin +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.""" + class Kernel(Plugin): URL = 'https://www.kernel.org/feeds/kdist.xml' + @irc3.event(r'(?i)^:\S+ PRIVMSG (?P\S+) :' + r'.*(?\S+) :' - r'.*(?\S+) :(?Phuehuehue)$') def huehuehue(self, channel: str, msg: str): self.bot.privmsg(channel, msg)