From 9968cf60a0d4c4f22e04e1152b359024fe9d6d66 Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Mon, 24 Jun 2019 22:26:50 -0400 Subject: [PATCH] Add first go at web plugin --- commands/web.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 commands/web.py diff --git a/commands/web.py b/commands/web.py new file mode 100644 index 0000000..b5e0014 --- /dev/null +++ b/commands/web.py @@ -0,0 +1,8 @@ +import plugin, subprocess + +@plugin.command("web") +def on_web(self,channel,nick,*args): + output = subprocess.check_output(["/usr/local/bin/web"]).decode("ascii").split("\n") + output = filter(None,output) + for line in output: + self.say(channel,"{}".format(line))