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 timedelta
|
||||
|
||||
from module_state import ModuleState
|
||||
|
||||
nemubotversion = 3.0
|
||||
|
||||
def getPage ():
|
||||
conn = http.client.HTTPSConnection("intra.acu.epita.fr")
|
||||
conn.request("GET", "/intra/sout_liste.html")
|
||||
conn = http.client.HTTPSConnection(CONF.getNode("server")["ip"])
|
||||
conn.request("GET", CONF.getNode("server")["url"])
|
||||
|
||||
res = conn.getresponse()
|
||||
data = res.read()
|
||||
@ -122,14 +126,6 @@ class SiteSoutenances:
|
||||
return close
|
||||
|
||||
|
||||
def load_module(datas_path):
|
||||
"""Load this module"""
|
||||
return
|
||||
|
||||
def save_module():
|
||||
"""Save the module state"""
|
||||
return
|
||||
|
||||
def help_tiny ():
|
||||
"""Line inserted in the response to the command !help"""
|
||||
return "EPITA ING1 defenses module"
|
||||
@ -242,10 +238,3 @@ def parseask (msg):
|
||||
DELAYED[d].evt.set()
|
||||
return treat
|
||||
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