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

dofile(minetest.get_modpath("furrybot") .. "/bot.lua")

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

minetest.register_on_receiving_chat_message(function(msg)
	furrybot.recieve(msg)
end)

minetest.register_chatcommand("fbreload", {
	func = function()
		local func = env.loadfile("clientmods/furrybot/bot.lua")
		func()
	end
})