aboutsummaryrefslogtreecommitdiff
path: root/bot.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-09-12 20:12:05 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-09-12 20:12:05 +0200
commit733fd9aa22eb41fb5ba5602e5e417925a7cd8821 (patch)
treef3a86c85ebffbf1b01e7cfaf0584776d22f1db77 /bot.lua
parent650f48d7cd72231e56d9c2f9bc175c768cb0a6d0 (diff)
downloadamogus-733fd9aa22eb41fb5ba5602e5e417925a7cd8821.tar.xz
Ignore furrybot commandsHEADmaster
Diffstat (limited to 'bot.lua')
-rw-r--r--bot.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.lua b/bot.lua
index cbffb2e..2913c72 100644
--- a/bot.lua
+++ b/bot.lua
@@ -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)