Remove bot from Userslist
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Remove bot from Userslist

Started by [G-T-E]Gate?, 17 April, 2004, 22:19:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[G-T-E]Gate?

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

RDB

function Main()
   frmHub:UnregBot("BotName")
end


Not sure how to do the qoutes for this code thingy :-s

[NL]trucker

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
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


[G-T-E]Gate?

Yeep Thats the one using cmd +unreg
Gr8 [NL]
tks

[G-T-E]Gate?

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...

Snooze

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

plop

i can't remember making this 1. lol

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<


pHaTTy

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

Resistance is futile!


pHaTTy

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,,
Resistance is futile!

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

[G-T-E]Gate?

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

SMF spam blocked by CleanTalk