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:
@@ -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')
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user