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.

Chat command

Old posts that have not been replied to for several years.
Locked
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Chat command

Post by Jag »

how can i make my bot to dcc chat me when i write him:

Code: Select all

!chat
in the query?
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

anyone? :cry:
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Jag, this question has been asked and answered quite some times on this board. (Assuming you mean a public !chat request).

Nevertheless, you may try to play around with the below code.

Code: Select all

bind pub - !chat pub:chatme

proc pub:chatme { nick uhost hand chan text } {

   global botnick

   # call internal *ctcp:CHAT proc

   *ctcp:CHAT $nick $uhost $hand $botnick CHAT $text

   # log the request

   return 1

}
You can also write a script that sends out the CHAT request to the client using the [myip] in combination with the listening port.
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

10x, but when the bot sending me a chat, it doesn't respond to what i'm writing at the DCC chat.
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

oops, sorry.... my eggdrop was in a little lag.
10x a lot! :P
Locked