from commands import getstatusoutput as ex
# on récupère la config
-import config_basile as config
+import config
# la partie qui réfère au fichier lui-même est mieux ici
# sinon on réfère la config et pas le fichier lui-même
def login_NK(username,password,typ="bdd"):
sock=connect_NK()
if typ=="special": # ça c'est pour Basile lui-même
- masque='["note"]'
+ masque='[]'
elif typ=="bdd":
- masque='[["all"],["all"],false]'
+ masque='[[], [], true]'
try:
# Basile a un compte special user
commande='login [%s,%s,"%s",%s]'%(json.dumps(username),json.dumps(password),typ,masque)
log(self.serveur,"Connected")
if self.debug:
self.chanlist=["#bot"]
- else:
- serv.privmsg("ChanServ", "INVITE #note-dev")
for c in self.chanlist:
log(self.serveur,"JOIN %s"%(c))
serv.join(c)