egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bot send text via dcc chat to User(s)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Thu Oct 23, 2014 1:54 pm    Post subject: Bot send text via dcc chat to User(s) Reply with quote

Hi everyone Smile

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!
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Oct 25, 2014 9:25 am    Post subject: Re: Bot send text via dcc chat to User(s) Reply with quote

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.
Back to top
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Sat Oct 25, 2014 5:59 pm    Post subject: Reply with quote

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

And yeah, all messages are flood controlled ( Notice, ... ) .
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Oct 25, 2014 6:09 pm    Post subject: Reply with quote

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


You forgot to answer:
Quote:

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/1.6.21/tcl-commands.html
and text search for
nick2hand
and read about that tcl command.

Next, go here:
http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#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.
Back to top
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Tue Oct 28, 2014 5:55 am    Post subject: Reply with quote

Thanks for your support! Trying to script this on my own
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Oct 28, 2014 8:34 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber