Can i send PM to Bot from other Bot? (-)
 

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

Can i send PM to Bot from other Bot? (-)

Started by Zood, 11 September, 2004, 23:41:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

bastya_elvtars

Why you sent PM? Triggering a command?
Everything could have been anything else and it would have just as much meaning.

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

??????Hawk??????

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

Zood

To plop: How can i do this:
- bot1 and bot2 to chat
- bot1 to bcdc to bot2

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

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.

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk