| View previous topic :: View next topic |
| Author |
Message |
Etni Voice
Joined: 23 Nov 2007 Posts: 4
|
Posted: Fri Sep 11, 2009 10:14 am Post subject: Bind question (how to make bot recognize its own lines) |
|
|
Hi all,
This may be a stupid question, but is there something similar to "bind pubm" that would include the bot's own channel messages?
The reason I'm asking this is because our irc-channel has a script ("toptod") that calculates words spoken daily, but since it's done using bind pubm, it ignores the bot's own words.
There are some tedious workarounds of course, such as putting some sort of calculation code to each script that makes the bot talk, analysing channel logs for statistics, or bringing another bot to the channel, but I'm guessing there must be an easier way. Besides, if I could get a script to recognize words produced by other scripts in the same bot, it might have other fun applications.
Cheers,
Etni |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Fri Sep 11, 2009 11:09 am Post subject: |
|
|
Possibly a RAW bind using keyword PRIVMSG rather than a numeric would achieve what you need but it would require experimenting to confirm. Channel chat is simply PRIVMSG to #channelname. _________________ I must have had nothing to do |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Sep 11, 2009 1:33 pm Post subject: |
|
|
The problem here, which has been discussed previously on this forum, is that irc-servers won't echo the PRIVMSG (nor NOTICE) back to the sender. As such, not even raw bindings will do you any good.
There is a hack/patch somewhere on the forum that enables "bot-talk" to be logged, this could probably be modified to trigger bindings as well. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Etni Voice
Joined: 23 Nov 2007 Posts: 4
|
Posted: Fri Sep 11, 2009 1:40 pm Post subject: |
|
|
| Hmm. I'll look into that. Thanks for the tip! |
|
| Back to top |
|
 |
|