aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: a21bb9d7804f8b253b311efe54309ce9d00ad3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
amogus = {}

local http = minetest.request_http_api()
local env = minetest.request_insecure_environment()
local storage = minetest.get_mod_storage()

libclamity.register_on_chat_message(function(...)
	amogus.parse_message(...)
end)

minetest.register_chatcommand("amogus_reload", {
	func = function()
		return amogus.reload(http, env, storage)
	end
})

loadfile(minetest.get_modpath("amogus") .. "/bot.lua")()(http, env, storage)