Move to Lua 5.3.

Also new shell script to install Luarocks (for Lua5.3) (on Ubuntu 16.04) and all
necessary rocks.
Updated tg-install.sh to not include all the needless dependencies.
This commit is contained in:
topkecleon
2016-09-04 00:50:51 -04:00
parent caff204c71
commit 1063ee8729
7 changed files with 44 additions and 13 deletions

View File

@@ -27,6 +27,8 @@ bot.version = '3.13'
-- Function to be run on start and reload.
function bot:init(config)
assert(config.bot_api_key, 'You didn\'t set your bot token in config.lua!')
bindings = require('otouto.bindings').init(config.bot_api_key)
utilities = require('otouto.utilities')

View File

@@ -1066,7 +1066,7 @@ function administration.init_command(self_, config_)
command = 'alist',
privilege = 3,
interior = true,
interior = false,
doc = 'Returns a list of administrators. Owner is denoted with a star character.',
action = function(self, msg, group, config)

View File

@@ -36,7 +36,7 @@ function luarun:action(msg, config)
end
local output, success =
loadstring("local bot = require('otouto.bot')\n\z
load("local bot = require('otouto.bot')\n\z
local bindings = require('otouto.bindings')\n\z
local utilities = require('otouto.utilities')\n\z
local drua = require('otouto.drua-tg')\n\z