PtokaX forum

Development Section => Your Developing Problems => Topic started by: Zood on 11 September, 2004, 23:41:01

Title: Can i send PM to Bot from other Bot? (-)
Post by: Zood on 11 September, 2004, 23:41:01
?(
Title:
Post by: plop on 12 September, 2004, 00:10:18
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
Title:
Post by: bastya_elvtars on 12 September, 2004, 01:54:45
Why you sent PM? Triggering a command?
Title:
Post by: plop on 12 September, 2004, 02:57:19
bot1 and bot2 to chat
bot ---> hub
bot2 ---> hub
bot1 to bcdc to  bot2
bot ---> bcdc ---> botpm so nobody sees whats going on.

plop
Title:
Post by: ??????Hawk?????? on 12 September, 2004, 04:24:42
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
Title:
Post by: Zood on 12 September, 2004, 16:14:26
To plop: How can i do this:
- bot1 and bot2 to chat
- bot1 to bcdc to bot2
Title:
Post by: plop on 12 September, 2004, 17:07:09
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
Title:
Post by: Zood on 13 September, 2004, 00:20:48
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.
Title:
Post by: plop on 13 September, 2004, 20:56:29
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