Switched from dkjson to cjson. lua-cjson is now a dependency.

administration.lua now saves its database every minute. This will be changed in a
future update.
This commit is contained in:
topkecleon
2016-02-21 00:21:48 -05:00
parent f61eabf946
commit 03ce363c98
6 changed files with 13 additions and 747 deletions

View File

@ -2,9 +2,9 @@
-- Functions shared among plugins.
-- you're welcome, brayden :^)
local HTTP = HTTP or require('socket.http')
local HTTPS = HTTPS or require('ssl.https')
local JSON = JSON or require('dkjson')
HTTP = HTTP or require('socket.http')
HTTPS = HTTPS or require('ssl.https')
JSON = JSON or require('cjson')
-- get the indexed word in a string
get_word = function(s, i)