From 2c6ece93b57a627893e5a9e4967824eb89a77c91 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 16 Aug 2016 00:20:45 +0200 Subject: [PATCH] Fallback, falls Redis nicht in Config gesetzt --- otouto/redis.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/otouto/redis.lua b/otouto/redis.lua index 33087f5..d89ec46 100644 --- a/otouto/redis.lua +++ b/otouto/redis.lua @@ -1,6 +1,13 @@ local Redis = require 'redis' local FakeRedis = require 'fakeredis' local config = require('config') +if not config.redis then -- Please update the values in the config.lua! + config.redis = { + host = '127.0.0.1', + port = 6379, + use_socket = false + } +end -- Overwrite HGETALL Redis.commands.hgetall = Redis.command('hgetall', {