Skip to content

Only look hopeful when someone asks about themselves. #6

@relsqui

Description

@relsqui

Right now, archivebot will look up hopefully when it sees its infobot end a line with an ellipsis. This is often a false positive. The right behavior is to only do it after someone says "infobot: me" where "me" is their own nick, and the infobot replies with a line ending in an ellipsis -- and only do it once until that situation arises again.

Off the top of my head, I think the implementation looks like:

  • detect an "infobot: me" line, and set a "potentially hopeful" flag to "me" (the username)
  • when infobot speaks, if the flag is set, check whether the line starts with "me is" and ends with an ellipsis. if both, look hopeful.
  • regardless of the result of the previous comparison, after it's tested, unset the flag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions