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.

Bot send text via dcc chat to User(s)

Help for those learning Tcl or writing their own scripts.
Post Reply
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Bot send text via dcc chat to User(s)

Post by Elfriede »

Hi everyone :)

was wondering if theres the possibilty to make the bot respond via dcc chat on certain commands to users?

Meaning: !cmd whatever and the Bot reply's via dcc chat. Every User in the Channel should be able to do so. I need it like this, cause there are quite a lot lines to be sent and using dcc chat should be flood free.

Thanks for helping!
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Bot send text via dcc chat to User(s)

Post by willyw »

DCC would require a login.
Does everyone in the channel already have an account in the bot?
Are we assuming that they are always logged into the bot?

Question for you:
On whatever network you use, are querys (a regular private message - not DCC) flood controlled?
Test it, to find out.
If you can use a pm to do your job, then it becomes much more simple.
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

Well its my bot so log-in control is no problem.

And yeah, all messages are flood controlled ( Notice, ... ) .
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Elfriede wrote:Well its my bot so log-in control is no problem.
...
You forgot to answer:
Does everyone in the channel already have an account in the bot?
Are we assuming that they are always logged into the bot?
so I will just make some assumptions.

Go here:
http://www.eggheads.org/support/egghtml ... mands.html
and text search for
nick2hand
and read about that tcl command.

Next, go here:
http://www.eggheads.org/support/egghtml ... ml#dcccmds
and read about
hand2idx

Using them, and some other often used tcl, I think you could put together something that would do what you asked for.
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

Thanks for your support! Trying to script this on my own
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Excellent!

Let us know how you progress.

If you run into an insurmountable snag, if you wish you can post what you have here:
http://paste.tclhelp.net/
and perhaps we can have a look at it with you.

Bonus:
That particular pastebin does TCL syntax checking - it might help you debug your code.
Post Reply