This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

topic relay

Old posts that have not been replied to for several years.
Locked
m
mindflow
Voice
Posts: 22
Joined: Thu Mar 10, 2005 11:14 am

topic relay

Post by mindflow »

Somone that know if a TCL is written that can relay topic from one channel to another true a linked bot ? all i have seen is TCL's that can "lock" the topic, or set back the old one if the topic is lost, but thats not what i looking for. i think i can manage to make the code for the "relay" part, but i dont think i can be able to make it change the topic by it self, im not that good at coding yet.. 8) :?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

This should help you on the way then:

To read a topic

Code: Select all

topic #channel
Set a topic

Code: Select all

putserv "TOPIC #channel :<topic>"
There's also a topic bind that get triggered everytime a topic changes

Code: Select all

bind topc -|- * topic
proc topic {nick host hand chan topic} {
 # ...
}
m
mindflow
Voice
Posts: 22
Joined: Thu Mar 10, 2005 11:14 am

Post by mindflow »

Ok, i have that part working ok.. but how would i send it true the botnet ? i can use "bot", but how would it send the topic to 1 bot only ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

putbot <bot-nick> <message>
Description: sends a message across the botnet to another bot. If no
script intercepts the message on the other end, the message is
ignored.
Returns: nothing
Module: core
and use the bot bind to catch this on the other bot.
(18) BOT
bind bot <flags> <command> <proc>
proc-name <from-bot> <command> <text>

Description: triggered by a message coming from another bot in
the botnet. The first word is the command and the rest becomes
the text argument; flags are ignored.
Module: core
m
mindflow
Voice
Posts: 22
Joined: Thu Mar 10, 2005 11:14 am

Post by mindflow »

thats no help to me.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

On the bot reading/sending the topic

Code: Select all

putbot botname "keyword <topic or whatever goes here>"
where botname is the name of the bot you want to send the topic to.

On the bot receiving the msg

Code: Select all

bind bot b keyeord proc:name
proc proc:name {frombot cmd arg} {
 # ...
}
m
mindflow
Voice
Posts: 22
Joined: Thu Mar 10, 2005 11:14 am

Post by mindflow »

thnx :P
Locked