hi, can some1 make me a welcome msg for ops and users when they enter the hub. thanks
sure easy ;)
Bot = "Keiko"
function NewUserConnected(user)
SendToAll(Bot,"Welcome our new user "..user.sName..", good to have you")
end
function OpConnected(user)
SendToAll(Bot,"Our Op "..user.sName..", has entered the hub")
end
thers a simple one ;)
-phatty
thanks. but i need 1 which gives it in pm not on main.
Bot = "Keiko"
function NewUserConnected(user)
user:SendPM(Bot,"Welcome "..user.sName..", good to have you")
end
function OpConnected(user)
user:SendPM(Bot,"Hey "..user.sName..", welcome back at the hub")
end
-phatty
Try this not tested ..
Make a txt .. whit the name, "msg.txt".
sBot = "-Msg-"
Message = "msg.txt"
function OpConnected(curUser)
Msg(curUser)
end
function NewUserConnected(curUser)
Msg(curUser)
end
function Msg(curUser)
readfrom(Message)
local message = ""
while 1 do
local line = read()
if (line == nil) then break else
message = message..line.."\r\n"
end
end
curUser:SendPM(sBot,message)
end
phatty ur script doesn't work in pm and neither does ur tuban.
Bot = "Keiko"
function Main()
frmHub:RegBot(Bot)
end
function NewUserConnected(user)
user:SendPM(Bot,"Welcome "..user.sName..", good to have you")
end
function OpConnected(user)
user:SendPM(Bot,"Hey "..user.sName..", welcome back at the hub")
end
that will work for sure
--Litle edit by Shhipis
botname = "Keiko"
function Main()
frmHub:RegBot(botname)
end
function NewUserConnected(user)
user:SendPM(botname,"Welcome "..user.sName..", good to have you")
end
function OpConnected(user)
user:SendPM(botname,"Hey "..user.sName..", welcome back at the hub")
end
hahaha to late :P
Damn..
Im too sow :rolleyes:
and why change to botname bot is smaller text, the less text the better, less k, so when you write a full script it has less k in size with all the text shotened down ;)
Yep...
Your right...
Btw..
The bot you help me out with..
It allready ahve a version 1.6.1 8) lol
I named it "Hub-Seciurity Bot"
/shipis
hmmm yep i wud think you have added purs name in there too, as he was first to help out if i remember correctly ;)
I think my works perfect not my fault ;))))))))))))
tuben ur 1 never sent a welcoming msg at start in pm he showed it on main. thanks phatty ur second 1 works just wat i needed. thanks
np m8, a pleasure :o)