]> git.lizzy.rs Git - furrybot.git/blob - init.lua
Proper badge support
[furrybot.git] / init.lua
1 furrybot = {}
2
3 local http = minetest.request_http_api()
4 local env = minetest.request_insecure_environment()
5 local storage = minetest.get_mod_storage()
6
7 minetest.register_on_receiving_chat_message(function(msg)
8         furrybot.recieve(msg)
9 end)
10
11 minetest.register_chatcommand("fbreload", {
12         func = function()
13                 return furrybot.reload(http, env, storage)
14         end
15 })
16
17 loadfile(minetest.get_modpath("furrybot") .. "/bot.lua")()(http, env, storage)