From 739aa37a328a9951c2c989df5bcb5e720d6d1742 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 10 Jan 2014 14:24:38 +0100 Subject: news: new command uptime --- news/controller.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'news') 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'] -- cgit v1.2.3