Module soutenance working with V3
This commit is contained in:
parent
8383668639
commit
cc106e2157
|
@ -9,9 +9,13 @@ from datetime import date
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
|
from module_state import ModuleState
|
||||||
|
|
||||||
|
nemubotversion = 3.0
|
||||||
|
|
||||||
def getPage ():
|
def getPage ():
|
||||||
conn = http.client.HTTPSConnection("intra.acu.epita.fr")
|
conn = http.client.HTTPSConnection(CONF.getNode("server")["ip"])
|
||||||
conn.request("GET", "/intra/sout_liste.html")
|
conn.request("GET", CONF.getNode("server")["url"])
|
||||||
|
|
||||||
res = conn.getresponse()
|
res = conn.getresponse()
|
||||||
data = res.read()
|
data = res.read()
|
||||||
|
@ -122,14 +126,6 @@ class SiteSoutenances:
|
||||||
return close
|
return close
|
||||||
|
|
||||||
|
|
||||||
def load_module(datas_path):
|
|
||||||
"""Load this module"""
|
|
||||||
return
|
|
||||||
|
|
||||||
def save_module():
|
|
||||||
"""Save the module state"""
|
|
||||||
return
|
|
||||||
|
|
||||||
def help_tiny ():
|
def help_tiny ():
|
||||||
"""Line inserted in the response to the command !help"""
|
"""Line inserted in the response to the command !help"""
|
||||||
return "EPITA ING1 defenses module"
|
return "EPITA ING1 defenses module"
|
||||||
|
@ -242,10 +238,3 @@ def parseask (msg):
|
||||||
DELAYED[d].evt.set()
|
DELAYED[d].evt.set()
|
||||||
return treat
|
return treat
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def parselisten (msg):
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def startThread(site):
|
|
||||||
site.check ()
|
|
4
modules/soutenance.xml
Normal file
4
modules/soutenance.xml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
<nemubotmodule name="soutenance">
|
||||||
|
<server ip="intra.acu.epita.fr" url="/intra/sout_liste.html" />
|
||||||
|
</nemubotmodule>
|
Loading…
Reference in New Issue
Block a user