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.

ctcp-version new chatters and record reply

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
b
boodle
Voice
Posts: 5
Joined: Mon Oct 06, 2014 11:46 am
Contact:

ctcp-version new chatters and record reply

Post by boodle »

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: Select all

    bind join - * yo
    proc yo {nick uhost hand chan} {
      putserv "PRIVMSG $nick :\001VERSION\001"
    }
any help would be greatly appreciated. thanks
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Re: ctcp-version new chatters and record reply

Post by willyw »

boodle wrote: ...
i just need to know how to save the response
Go here:
http://www.eggheads.org/support/egghtml ... mands.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.
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.
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Re: ctcp-version new chatters and record reply

Post by willyw »

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.
Post Reply