summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-10 14:24:38 +0100
committerlassulus <lassulus@googlemail.com>2014-01-10 14:24:38 +0100
commit739aa37a328a9951c2c989df5bcb5e720d6d1742 (patch)
tree3a6194dd000700584974d09509d4516690011628
parentbc99b60e6db3aed9d1f4130185df97639e6daf66 (diff)
news: new command uptime
-rwxr-xr-xnews/controller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/news/controller.py b/news/controller.py
index 7d41fd6f..f9a61e3c 100755
--- a/news/controller.py
+++ b/news/controller.py
@@ -114,6 +114,10 @@ class commands():
output = subprocess.check_output(['./GfindFeeds4bot', args[1]]).decode()
return output
+ def uptime(args):
+ output = subprocess.check_output(['uptime']).decode()
+ return output
+
feedfile = 'new_feeds'
url_shortener = 'http://wall'
init_channels = ['#news']