From 64160e700c113dbcc31c79182ce2aaa6be062ae7 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Mon, 22 Feb 2016 16:46:26 -0500 Subject: [PATCH] Save the database way less often. --- bot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.lua b/bot.lua index 0d58f3f..38d9e4b 100755 --- a/bot.lua +++ b/bot.lua @@ -97,7 +97,6 @@ while is_started do -- Start a loop while the bot should be running. last_update = v.update_id on_msg_receive(v.message) end - save_data('otouto.db', database) else print(config.errors.connection) end @@ -111,6 +110,7 @@ while is_started do -- Start a loop while the bot should be running. end end end + save_data('otouto.db', database) -- Save the database. last_cron = os.time() -- And finally, update the variable. end