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