Giving A Bot A Description
 

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

Giving A Bot A Description

Started by (Mr420), 11 October, 2003, 01:18:24

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

(Mr420)

This Will Allow A Bot To Have A Description. Just add the my_info_string = blah to the function Main() of the script. If it doesn't have one, use the one provided.
--//Bot Description For Any Bot
--//Mr420

botname "blah"
bot_email "blah" 
bot_speed "blah" 
bot_descr "blah" 
bot_share_size 420.01 1024 *1024
my_info_string 
"$MyINFO $ALL "..botname.." "..bot_descr.."$ $"..bot_speed..strchar).."$"..bot_email

function Main()
frmHub:RegBot(botname)
my_info_string "$MyINFO $ALL "..botname.." "..bot_descr.."$ $"..bot_speed..strchar).."$"..bot_email.. 
"$"..bot_share_size.."$"
end

function NewUserConnected(curUser
curUser:SendDatamy_info_string 
end 

function OpConnected(curUser
curUser:SendDatamy_info_string 
end 


Enjoy!!

/(Mr420)
Ptokax Owns J000!
Owner of: ??Rg????n R?@LM?
Founder of: 420 ??+?r????

WENS


Sorry For My English ...;p
WENS
FRENCH NETWORK FDFH?

ptaczek

Does it work also for userlist refresh? ;)
-ptaczek-

This whole physical universe is a hologram.
[Cosmosis - Contact: The First Step]

piglja

Ptaczek, nope;)

It is not, then in the script must be a line which removes it on script start:)
Nice, Pink Piglet:))
:))  (I am a newbie here, so, plz be kind and soft to me ) :))  
And be carefull, I am haywire  :rolleyes:

pHaTTy

add SendToAll to main function


function Main()
frmHub:RegBot(botname)
my_info_string = "$MyINFO $ALL "..botname.." "..bot_descr.."$ $"..bot_speed..strchar( 1 ).."$"..bot_email.. 
"$"..bot_share_size.."$"
SendToAll( my_info_string ) 

end


l8rr,,


-phatty
Resistance is futile!

(Mr420)

thanks for the SendToAll phatty. Didn't think of that...hehe  
 
;)

/(Mr420)
Ptokax Owns J000!
Owner of: ??Rg????n R?@LM?
Founder of: 420 ??+?r????

pHaTTy

Resistance is futile!

Skrollster

QuoteOriginally posted by ptaczek
Does it work also for userlist refresh? ;)

Yes it does =)

it will keep the old info as long as the client doesn't get any new info about the bot/user

NightLitch

This is good... now my bot will not look so, "pale" :-)
//NL

enigma

#9
can i show a tag for the bot ?
i edited the above ..
botname = "XXX"
bot_email = ""
bot_speed = ""
bot_descr = ""
bot_share_size = XXXXX.XX * 1024 *1024
my_info_string = "$MyINFO $ALL "..botname.." "..bot_descr.."$ $"..bot_speed.."$"..bot_email
function Main()
frmHub:RegBot(botname)
my_info_string = "$MyINFO $ALL "..botname.." "..bot_descr.."$ $"..bot_speed.."$"..bot_email..
"$"..bot_share_size.."$"
SendToAll( my_info_string )
end
function NewUserConnected(curUser)
curUser:SendData( my_info_string )
end
function OpConnected(curUser)
curUser:SendData( my_info_string )
end

i got some error as strchr something..jus removed  the strchr part and working as i wanted
regarding tag some1 help pls.

bastya_elvtars

Bot description is built into the API now.

See this.
Everything could have been anything else and it would have just as much meaning.

(-=TrIp-iN-SuN=-)

i get error
Syntax [string "--//Bot Description For Any Bot
..."]:9: attempt to call global `strchar' (a nil value)

bastya_elvtars

QuoteOriginally posted by (-=TrIp-iN-SuN=-)
i get error
Syntax [string "--//Bot Description For Any Bot
..."]:9: attempt to call global `strchar' (a nil value)

*shits himself in the face*

BTW you just have to replace strchar to string.char if you eagerly wanna use that solution. ;)
Everything could have been anything else and it would have just as much meaning.

enigma

i jus removed the strchr part and lol the script is working ...see tats wat i edited in my posted script...lolol

enigma

QuoteOriginally posted by bastya_elvtars
Bot description is built into the API now.

See this.

umm ..i tried to understand tat , but cant get mych out of it :(

maybe some1 posts me the code :)

DJ Bert

#15
This is what i use and works fine.
--bot info
botname = "Guardian"
botemail = "guardianlua5@walla.com"
bottag = "<++ K:W.4711,M:A,H:1/0/6,S:1>"
botspeed = "-GIII-" 
botdescr = "Guardian 5 V1.5 by Guardian Team"
botsharesize = 17 * 1024 * gb + 1024 * 1024 * 285
frmHub:RegBot(botname, Reg)
botinfostring = "$MyINFO $ALL "..botname.." "..botdescr.." "..bottag.."$ $"..botspeed.."$"..botemail.."$"..botsharesize.."$"

function Main()
SendToAll("( >>>>  Guardian 5 v.1.5 - Made by Guardianteam? Started at "..os.date(" the %A %d-%m-%Y at %X ").."  <<<< )")
end

function NewUserConnected(curUser) 
curUser:SendData(botinfostring) 
end 

function OpConnected(curUser) 
curUser:SendDatabotinfostring) 
end



Grtzzz

DJ Bert

bastya_elvtars

If a bot has a connection, recent client implementations (and Hub-Link) will handle it as a regular user. So, away messages will be sent to it, etc.
The way PtokaX does it gives no connection to the bot, so every client knows it's a bot, not a user.
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk