StampyAI / stampy

A Discord bot for the Robert Miles AI server
37 stars 9 forks source link

Keep certain jokes from repeating #266

Closed ProducerMatt closed 1 year ago

ProducerMatt commented 1 year ago

If I need some specific answer from Stampy, I've regularly run into jokes that interrupt my interaction. This wouldn't be a problem if the jokes didn't trigger for every message meeting certain criteria. For example, a message at Stampy with the word "or" always triggers the random choice functionality from Silly.py and Random.py. This introduces a function to check if this message is repeated, and if it is, return False. You can then use this function to wrap some troublesome joke, such that if your request is caught by it, just sending the exact same request a second time will disable it. Maybe there's more ways to expand it. Thoughts?

robertskmiles commented 1 year ago

Silly responses like that are meant to be low confidence, so if the intended interaction happens it should surely have higher priority? I'm confused about why the joke response is disruptive, if it only happens when the intended response totally failed to fire

ProducerMatt commented 1 year ago

@robertskmiles with some responses it's as you describe. The most common issue i run into is being literally unable to ask Stampy a question with "or" in it, if I'm hoping to trigger DuckDuckGo or ChatGPT, because the Silly and Random modules both take priority.