From aa7ac75d312ac260a9751f1ab556f43cffc64c0f Mon Sep 17 00:00:00 2001 From: yago Date: Mon, 22 Dec 2014 21:42:58 +0100 Subject: [PATCH] fixes SIGNAL received error --- bot/bot.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bot/bot.lua b/bot/bot.lua index cc53369..bf47b62 100644 --- a/bot/bot.lua +++ b/bot/bot.lua @@ -4,7 +4,7 @@ URL = require("socket.url") json = (loadfile "./bot/JSON.lua")() require("./bot/utils") -VERSION = 'v0.7.6' +VERSION = 'v0.7.7' function on_msg_receive (msg) vardump(msg) @@ -186,16 +186,17 @@ function on_binlog_replay_end () started = 1 load_plugins() -- Uncomment the line to enable cron plugins. - -- cron_plugins() + -- postpone (cron_plugins, false, 1.0) -- See plugins/ping.lua as an example for cron end -- Start and load values -config = load_config() -_users = load_user_stats() our_id = 0 now = os.time() +config = load_config() +_users = load_user_stats() + -- load plugins plugins = {}