Searched the forum and cant find the script to delete a bot from the users list. I dont wish to reboot the hub to remove it.. any one can paste it or give a link , please
function Main()
frmHub:UnregBot("BotName")
end
Not sure how to do the qoutes for this code thingy :-s
RDB
you are almost right
here is the one i have type in main +unreg
-- thought it was made by plop
function DataArrival(user, data)
if strsub(data,1,1)=="<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd,name = strfind(data,"%b<>%s+(%S+)%s+(%S+)")
if cmd=="+unreg" then
frmHub:UnregBot(name)
end
end
end
Yeep Thats the one using cmd +unreg
Gr8 [NL]
tks
Little to fast I was,, sorry ,
There is a script with cmd !rembot
Remove bot from Users list
To much coffe is speeding me up...
Just change the command in the script above ..
-- thought it was made by plop
function DataArrival(user, data)
if strsub(data,1,1)=="<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd,name = strfind(data,"%b<>%s+(%S+)%s+(%S+)")
if cmd=="!rembot" then
frmHub:UnregBot(name)
end
end
end
That should do it...
Good luck
**Snooze
i can't remember making this 1. lol
plop
LOL
well... credit goes to whom ever made it ;)
**Snooze
QuoteOriginally posted by plop
i can't remember making this 1. lol
plop
damn plop i bet that took some hard thinking to write :D lmfaooooo must of just satrted lua =D
hard = more than 20 secs of writing LOL
here
--Unregister bot by Phatty
--v1.51
Bot = "TheBotName"
Command = "!rembot" -- +
Success = "Unregistered bot succesful"
Unsuccess = "Unregister bot unsuccesful"
function DataArrival(user,data)
if strsub(data, 1, 1) == "<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if cmd == Command then
s,e,cmd,botsname = strfind(data,"%b<>%s+(%S+)%s+(%S+)")
if GetItemByName(botsname) then
user:SendData(Bot,Unsuccess)
return 1
else
frmHub:UnregBot(botsname)
user:SendData(Bot,Success)
end
return 1
end
end
end
later,,
maby i wrote it so fast that i forgot about it before even finishing it. lol
or it could have been 1 of my 74 alter ego's. lol
plop
one tng u all, It works fine,
Fast Can be Gerat too..
Hope ur all enjoying the evening..
A Smile Goes a Long Way..........:D
Ty