]> git.lizzy.rs Git - furrybot.git/blob - init.lua
Use libclamity callback
[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 libclamity.register_on_chat_message(function(...)
8         furrybot.parse_message(...)
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)