|
@@ -6,6 +6,8 @@ import urllib2
|
|
|
import re
|
|
|
import os
|
|
|
import subprocess
|
|
|
+from random import randint
|
|
|
+import math
|
|
|
|
|
|
import socket
|
|
|
import SocketServer
|
|
@@ -76,7 +78,14 @@ def ffpb_status(bot, trigger):
|
|
|
html = response.read()
|
|
|
m = re.search('<div id="nodecount">\s*(\d+)\s*</div>', html)
|
|
|
nodecount = int(m.group(1))
|
|
|
- bot.say('nodecount = {}'.format(nodecount))
|
|
|
+ if trigger.nick=='peki75':
|
|
|
+ bot.say('nodecount = {}+{} ;)'.format(randint(nodecount-30,nodecount-4),math.pi))
|
|
|
+ elif trigger.nick=='craegga':
|
|
|
+ bot.say('nodecount = 222{:+}'.format(nodecount-222))
|
|
|
+ elif trigger.nick=='THiSCO':
|
|
|
+ bot.say('Heute gibt es keine Nussecken fuer dich!')
|
|
|
+ else:
|
|
|
+ bot.say('nodecount = {}'.format(nodecount))
|
|
|
|
|
|
def ffpb_get_address(name):
|
|
|
peerfilename = '/home/ffpb-statusbot/knoten/' + name
|