Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #75 from Bytespeicher/plugins-userlist-cleanup
Browse files Browse the repository at this point in the history
Userlist plugin cleanup, part of #67
  • Loading branch information
mkzero committed Nov 2, 2015
2 parents 1837f94 + 7bd11c7 commit 2025c55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
14 changes: 7 additions & 7 deletions plugins/spacestatus.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-

from bytebot_config import BYTEBOT_PLUGIN_CONFIG
from plugins.plugin import Plugin
import json

from urllib import urlopen

import json
from bytebot_config import BYTEBOT_PLUGIN_CONFIG
from plugins.plugin import Plugin


class spacestatus(Plugin):
Expand Down Expand Up @@ -40,13 +41,12 @@ def onPrivmsg(self, irc, msg, channel, user):
'people_now_present'][0]

if data['value'] > 0:
irc.msg(channel, 'Space users: ' +
str(', '.join(data['names'])))
irc.msg(channel,
'Space users: ' + str(', '.join(data['names'])))
elif data['value'] == 0:
irc.msg(channel, 'Scheinbar ist niemand im Space :(')
else:
irc.msg(channel,
'Ich bin mir nicht sicher, ob jemand da ist')
except Exception as e:
print(e)
except Exception:
irc.msg(channel, '\tFehler beim Abrufen der User')
11 changes: 0 additions & 11 deletions plugins/usercount.py

This file was deleted.

0 comments on commit 2025c55

Please sign in to comment.