]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
serveur,port -> config ; serveur note : localhost -> bde2
authorVincent Le Gallic <basile@crans.org>
Sat, 9 Feb 2013 18:08:16 +0000 (19:08 +0100)
committerVincent Le Gallic <basile@crans.org>
Sat, 9 Feb 2013 18:08:16 +0000 (19:08 +0100)
basile.py
config.py

index bccea286b3ede55f0c7b5f7866d0626823a6104a..a87ed448cbf76022f39debc4c8ff39dc9b93bb58 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -71,7 +71,7 @@ def connect_NK():
     sock=socket.socket()
     try:
         # On établit la connexion sur port 4242
-        sock.connect(("127.0.0.1",4242))
+        sock.connect((config.NKserver, config.NKport))
         # On passe en SSL
         sock=ssl.wrap_socket(sock,ca_certs='../keys/ca_.crt')
         # On fait un hello
index 319f9bf4a1e7d76d02d7bb10b0a5d5058ba62d15..2fefc1c2d070bd34cc5fd5a894fe7c084f4573d8 100644 (file)
--- a/config.py
+++ b/config.py
@@ -15,6 +15,8 @@ quiet_channels=[]
 # la config note-related
 note_pseudo="Basile"
 note_password="NK2015BasileB0tr4nd0omp4assword]6_+{#]78{"
+nk_server = "bde2.crans.org"
+nk_port = "4242"
 
 # les logs
 logfile_template="basile.%s.log"