diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-12 15:30:49 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-12 15:30:49 +0100 |
commit | 9ef2b8fe1f3a13784c12f8fbdcbbc1b0154ca689 (patch) | |
tree | 7ceccd945c8e6e4b945c569aaa085d5dd63e8017 /init.lua | |
parent | 19cd4e7ea97d08d61b5ba650a471bbd2e814d779 (diff) | |
download | furrybot-master.tar.xz |
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,9 @@ furrybot = {} +local path = minetest.get_modpath("furrybot") + +utf8 = dofile(path .. "/utf8.lua") + local http = minetest.request_http_api() local env = minetest.request_insecure_environment() local storage = minetest.get_mod_storage() @@ -8,4 +12,4 @@ libclamity.register_on_chat_message(function(...) furrybot.parse_message(...) end) -loadfile(minetest.get_modpath("furrybot") .. "/bot.lua")()(http, env, storage) +loadfile(path .. "/bot.lua")()(http, env, storage) |