]> git.lizzy.rs Git - furrybot.git/blobdiff - init.lua
Use libclamity callback
[furrybot.git] / init.lua
index 614feafd64272ea4a053fc506652427bad994ffa..dcaf9857a065eb95c9728b3670a49a25bcd13cb6 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -4,8 +4,8 @@ local http = minetest.request_http_api()
 local env = minetest.request_insecure_environment()
 local storage = minetest.get_mod_storage()
 
-minetest.register_on_receiving_chat_message(function(msg)
-       furrybot.recieve(msg)
+libclamity.register_on_chat_message(function(...)
+       furrybot.parse_message(...)
 end)
 
 minetest.register_chatcommand("fbreload", {