Lua IRC bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
672 B

tArgs = {...}
local nick, chan, message = tArgs[1],tArgs[2],tArgs[3]
print(nick,chan,message,nick == "Shocky")
if message:find("o/") ~= nil or message:find("\\o") ~= nil then
if nick ~= "Shocky" then
if _G.leftHanging[2] == false then
print (nick .." left hanging at "..os.time())
local typeOfHighFive="o/"
if message:find("o/") ~= nil then
typeOfHighFive = "\\o"
end
_G.leftHanging = {os.time(),true,chan,typeOfHighFive}
elseif _G.leftHanging[2] == true then
_G.leftHanging = {0,false}
print("No longer left hanging.")
end
else
_G.leftHanging = {0,false}
end
end
if message:find("o/ * \\o") ~= nil then _G.leftHanging = {0, false} end