| View previous topic :: View next topic |
| Author |
Message |
boodle Voice
Joined: 06 Oct 2014 Posts: 5
|
Posted: Fri Oct 31, 2014 10:25 am Post subject: ctcp-version new chatters and record reply |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Nov 01, 2014 11:17 am Post subject: Re: ctcp-version new chatters and record reply |
|
|
| 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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Nov 01, 2014 11:22 am Post subject: Re: ctcp-version new chatters and record reply |
|
|
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 |
|
 |
|