aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-01-24 00:29:11 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-01-24 00:29:11 -0300
commita34e080da15d8545746d15e5886cba21ce7caa1d (patch)
tree78f8fa232661f082906fc6d6dde72851e4db74bd
parent54aea6be18ba7008af9ff1ce9c57b8da225cf7f6 (diff)
downloadreebot-a34e080da15d8545746d15e5886cba21ce7caa1d.tar.gz
reebot-a34e080da15d8545746d15e5886cba21ce7caa1d.zip
Reboot remembers the first time
-rw-r--r--config.py2
-rwxr-xr-xreebot.py2
-rw-r--r--reemongo.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/config.py b/config.py
index 50a6fb8..8553711 100644
--- a/config.py
+++ b/config.py
@@ -12,5 +12,5 @@ db_params = {
12 'database' : 'reevo', 12 'database' : 'reevo',
13 'feed_list' : 'feed_list', 13 'feed_list' : 'feed_list',
14 'log' : 'log', 14 'log' : 'log',
15 'users' : 'users', 15 'users' : 'users'
16} 16}
diff --git a/reebot.py b/reebot.py
index d51b455..eb2c95b 100755
--- a/reebot.py
+++ b/reebot.py
@@ -105,7 +105,7 @@ class rBot:
105 "join_date" : time.strftime("%Y-%m-%d %H:%M:%S"), 105 "join_date" : time.strftime("%Y-%m-%d %H:%M:%S"),
106 "channel" : [ target ] 106 "channel" : [ target ]
107 } ) 107 } )
108 # Send welcome message 108 # Send welcome message to user
109 self.sendmessage( source, messages['welcome'] ) 109 self.sendmessage( source, messages['welcome'] )
110 else: 110 else:
111 pass 111 pass
diff --git a/reemongo.py b/reemongo.py
index c6b1095..ce45eac 100644
--- a/reemongo.py
+++ b/reemongo.py
@@ -1,6 +1,6 @@
1#!/usr/bin/python 1#!/usr/bin/python
2""" MongoDB connection module """ 2""" MongoDB connection module """
3 3#
4import pymongo 4import pymongo
5from config import db_params 5from config import db_params
6 6