?(
QuoteOriginally posted by Zood
?(
no this could cause endless loops.
but you can have a bcdc based client bounch the msg, but do add a history 2 avoid loops.
plop
Why you sent PM? Triggering a command?
bot1 and bot2 to chat
bot ---> hub
bot2 ---> hub
bot1 to bcdc to bot2
bot ---> bcdc ---> bot
pm so nobody sees whats going on.
plop
heya peeps..
assuming both bots are on the same computer you could also send pm to file
bot1 -----> bot2 file <-----bot2 ( read and delete )
bot2 -----> bot1 file <-----bot1 ( read and delete)
both bots checking their relevent file for new info at a timed period
To plop: How can i do this:
- bot1 and bot2 to chat
- bot1 to bcdc to bot2
QuoteOriginally posted by Zood
To plop: How can i do this:
- bot1 and bot2 to chat
- bot1 to bcdc to bot2
SendToNick(nick, data) - Sends data to specified nick. If the nick is not online then it's ignored
nick - a nickname of user you want to send data to
data - string to send
SendPmToNick(to, from, data) - Sends a private message to given nick
to - nickname you want to send the PM to
from - who's sending the message ?
data - string to send
the trick by using chat/pm is that things happen instandly.
when using a file you need a timer 2 check it every x seconds/minutes.
plop
I trying to do that(SendToNick & SendPmToNick) don't work :(
What does it mean bot1 to bcdc? and bcdc to bot2?
What is it bcdc? :)
Thx.
QuoteOriginally posted by Zood
I trying to do that(SendToNick & SendPmToNick) don't work :(
What does it mean bot1 to bcdc? and bcdc to bot2?
What is it bcdc? :)
Thx.
bcdc is a dc++ mod with a lua api just like ptokax (dcdm is based on this client).
you can't send a msg from 1 script running on ptokax 2 another script running on ptokax.
2 solve this you can make both scripts save stuff 2 file which the other scripts reads again.
this is nice but cause long delay's.
bcdc can run scripts 2 which can make this work instandly.
instead of saving 2 a file you send the msg from script1 to the bcdc client, this recieves it and sends it back 2 ptokax but adressed to script 2.
plop