aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2017-05-21 14:44:57 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2017-05-21 14:44:57 +0200
commitfef1e97899814ea20362ad3ec22eecf352d472a1 (patch)
treef54db0c5bee20123b230ce867113ec3062ac7db9
parent90ef14b0932a39bdef2e81152181ddca122bedbc (diff)
use default Redis TCP port instead of Unix socket
-rw-r--r--README.md8
-rw-r--r--bismillah.py2
2 files changed, 1 insertions, 9 deletions
diff --git a/README.md b/README.md
index 04da68a..8bd5c10 100644
--- a/README.md
+++ b/README.md
@@ -60,14 +60,6 @@ TOKEN = "<your-token-here>"
Disable group chats for the bot by sending the BotFather the `/setjoingroups`
command and customize the bot further.
-The bot uses a Unix socket to communicate with Redis. Put the following in your
-`redis.conf`:
-
-```
-unixsocket /tmp/redis.sock
-unixsocketperm 766
-```
-
## Data files
The bot serves Quranic data collected from several projects. These are necessary
diff --git a/bismillah.py b/bismillah.py
index 4eddd14..39b2758 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -30,7 +30,7 @@ from quran import Quran, make_index
from secret import TOKEN
-r = StrictRedis(unix_socket_path="/tmp/redis.sock")
+r = StrictRedis()
redis_namespace = ""
update_id = None