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

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

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

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

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