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.

DCC CHAT To none user

Old posts that have not been replied to for several years.
Locked
A
AL-3AsHiG^^
Voice
Posts: 14
Joined: Thu Dec 09, 2004 9:40 am

DCC CHAT To none user

Post by AL-3AsHiG^^ »

hi,
i want my bot to send dcc chat to people that has no access.


like, if someone writes:
[15:23] <nickname> !helplist
the bot will send to him a dcc chat and writes all the help commands.


thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

replying on !helplist request with DCC CHAT is silly (no offense)

use NOTICE, it was invented for that purpose exactly
A
AL-3AsHiG^^
Voice
Posts: 14
Joined: Thu Dec 09, 2004 9:40 am

Post by AL-3AsHiG^^ »

even if it's silly, i need it.

if there a way to do so, i'd like to know it.
if there is no way, thank you :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

here's how to initiate DCC CHAT, assuming your bot listens on $port:

Code: Select all

putserv "privmsg $nick :\001DCC CHAT chat [myip] $port\001"
however, $nick has to be a valid botuser with partyline access - if this doesn't suit you, implement your own DCC protocol handler
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

or you could set your config file to auto-set just p on new users not hp, then make a pub command like "!add-dcc nick". So when you want make the bot dcc someone, it adds them as a user, then dccs them.
When the going gets tough...Make lemonade!!!
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

but I would just leave it the way it is, and do it manually. If someone needs partyline access, just type .adduser nick (if the user is on the same channel the bot is on). and then let the user dcc from there.
When the going gets tough...Make lemonade!!!
A
AL-3AsHiG^^
Voice
Posts: 14
Joined: Thu Dec 09, 2004 9:40 am

Post by AL-3AsHiG^^ »

hi, i did what you've said, demond
putserv "privmsg $nick :\001DCC CHAT chat LONGIP PORT\001"

and here what've got:

DCC Chat session
-
Client: q8knight (66.225.200.150)
Time: Mon Dec 20 10:55:21 2004
-
Acknowledging chat request...
-
Unable to connect
-
DCC session closed


and i am the bot owner.


and about implementing my own dcc handler, could it be done with TCL? or i've to do it in C? (i've to learn it first)

thanks
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

if you were unable to connect, that means either the bot doesn't listen on that port, or there is some firewall problem - check the eggdrop forum for DCC/firewall solutions, you need to get a couple of things right (wasn't it you whom I was helping there a short while ago?)

as of implementing your own DCC CHAT instead of standard eggdrop partyline, it can be done in Tcl but you need to learn how to handle TCP socket connections first
Locked