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 

ctcp-version new chatters and record reply

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
boodle
Voice


Joined: 06 Oct 2014
Posts: 5

PostPosted: Fri Oct 31, 2014 10:25 am    Post subject: ctcp-version new chatters and record reply Reply with quote

i think i found the right proc (below) to get the bot to version incoming chatters , i just need to know how to save the response in a .db flatfile as
nick!ident@ip:version-reply; or similar.
Code:

    bind join - * yo
    proc yo {nick uhost hand chan} {
      putserv "PRIVMSG $nick :\001VERSION\001"
    }

any help would be greatly appreciated. thanks
Back to top
View user's profile Send private message Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Nov 01, 2014 11:17 am    Post subject: Re: ctcp-version new chatters and record reply Reply with quote

boodle wrote:

...
i just need to know how to save the response


Go here:
http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html
and text search for:
CTCR (stackable)
in the binds sections, and read about that bind.
You can use it to watch for the response.

Quote:

in a .db flatfile as
nick!ident@ip:version-reply; or similar.


By "flatfile", you mean a plain old text file?
If so, check out:
http://forum.egghelp.org/viewtopic.php?t=6885
The whole thing is worth reading, but for this particular case be sure to see:
5. Add a line to the end of a file.

I hope this helps.

You can put together something with these things.

Let us know how it comes along.
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Nov 01, 2014 11:22 am    Post subject: Re: ctcp-version new chatters and record reply Reply with quote

After you get it working, here is something to think about:

What if there is a join flood on your channel(s)?

Won't the bot try to ctcp version every one of them?
Will the bot get itself kicked off the network for that?


After you get your basic idea working, check out:
http://forum.egghelp.org/viewtopic.php?p=45537#45537
perhaps you can use that somehow.
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 -> Script Requests 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