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.

MegaHAL (Windrop) - Extended reply scripts

Discussion of Eggdrop's code and module programming in C.
Post Reply
Z
Zeyra
Voice
Posts: 11
Joined: Sun Dec 27, 2009 1:02 am

MegaHAL (Windrop) - Extended reply scripts

Post by Zeyra »

As of now, Eggdrop (Windrop) replies whenever its name is mentioned, prefixing its reply with the one mentioning the name if the name of the bot is first in the sentence.

Additionally, it replies to EVERYTHING if freespeak is on.

I am wondering if there is a middle thing, or a simple way to do something in between?


The essence of my question would be this:

* The bot will reply to sentences containing its name.

* The bot will reply to sentences starting with its name with a prefix.

* The bot will reply to anything said, as long as it is not already processing something. (!)

Imagine that the bots name is never mentioned, and it is in a rather busy channel.

Someone says something, the bot starts making up a reply.

Someone else says something, but the bot does not reply to this as it is already finding a reply.

The bot posts its reply.

Someone else says something.

The bot now tries to find a reply to the last thing said, disregarding any other things said EXCEPT if they contain its name.

...Would this be possible, if yes - How?
Post Reply