Hiding Bot Names on the users list
 

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

Hiding Bot Names on the users list

Started by FunkyFender55, 11 February, 2004, 05:34:28

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FunkyFender55

I pretty sure it's possible, I just don't know how. Is there something I can add to a script for this?

TIA

DJ Bert

#1
Just remove the follow rules in Function Main

   frmHub:UnregBot(BOTName)
   frmHub:RegBot(BOTName)











[NL]trucker

QuoteJust remove the follow rules in Function Main
frmHub:UnregBot(BOTName)
frmHub:RegBot(BOTName)

yep thats one way easier would be to put  --  in front of lines that way the script doesnt recognise it.

other way is to give all the bots the same name; that way you can run as much bots as you wish but still only one is shown in userlist.
Owner of FunnyHub
 
Funyhub.no-ip.info
       Forum Master of


kepp

Well, That is hard to remove when you remove the script and the bot stays... :D

Let me see what i can dig up
Guarding    

kepp

function DataArrival(user, data)
local s,e,cmd,name = strfind(data,"%b<>%s+(%S+)%s+(%S+)")
   if ((cmd=="+getlost")) then
      if name == nil then
         user:SendData("*** Can't find the bot")
      else
         frmHub:UnregBot(name)
         user:SendData("*** Bot was succesfully removed")
      end
   end
end

Hope this helps
Guarding    

Event_Horizon

could you add +comeback & +listhidden ????

would be a nice feature :D
Greez ????_H???z??
??????????????????

??/v\\ \'?\' ?@?? ???? is Secured by RoboCop? Created by Optimus?

FunkyFender55

Thanks for the help. I got it to work.

((UKSN))shad_dow

#7
heres 1 for removeing bots name after u taken script out of the script folder . its by phatty and its from 1 of my Q`s from a few monuths agao that i posted on here
only i change the bots  name to match my bot
--Unregister bot by Phatty
--v1.51

Bot = "-=Theraoy-Bot=-"
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

hope this helps


PS. even checks to make shaw that the name is a bot and not a user , if its a users name it sends " Unregister bot unsuccesful " , if its a bots name it removes it from the list
 :D
creator of Therapy-X? bot

SMF spam blocked by CleanTalk