diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-10 14:24:38 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-10 14:24:38 +0100 |
commit | 739aa37a328a9951c2c989df5bcb5e720d6d1742 (patch) | |
tree | 3a6194dd000700584974d09509d4516690011628 | |
parent | bc99b60e6db3aed9d1f4130185df97639e6daf66 (diff) |
news: new command uptime
-rwxr-xr-x | news/controller.py | 4 |
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'] |