Ignore furrybot commands

master
Elias Fleckenstein 2021-09-12 20:12:05 +02:00
parent 650f48d7cd
commit 733fd9aa22
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function amogus.urlencode(url)
end
function amogus.parse_message(player, message, discord)
if player ~= minetest.localplayer:get_name() then
if player ~= minetest.localplayer:get_name() and message:sub(1, 1) ~= "!" then
http.fetch({url = "http://localhost:6969?message=" .. amogus.urlencode(message), timeout = 100}, function(res)
if res.succeeded then
minetest.send_chat_message(res.data)