zhaobenny / bz-cogs

Interesting cogs for Red Bot
MIT License
23 stars 13 forks source link

[Enhancement ] New Configurable Trigger #44

Closed egundersen closed 1 month ago

egundersen commented 1 month ago

It would be nice if the bot would only respond when users are having a conversation with it.

How it could work in practice:

Bot may continue to reply to new messages if no more than conversation_reply_time seconds have passed since the last message.

  • conversation_reply_time = 60 (setting to zero disables the feature)
  • conversation_reply_percent = 0.5 (50% chance to trigger a reply within the conversation_reply_time time frame

This feature request is basically asking for 2 configurable variables for a new way to trigger responses.

zhaobenny commented 1 month ago

Great suggestion, makes sense!

will implement in the future..

zhaobenny commented 1 month ago

implemented by e583d57f7f444188a4c5e1f94fa14658a0de84c6

currently it works off a timer off the last bot message (if there's too much side effects, i'll swap it to working off the last message instead as suggested)

the commands are [p]aiuser trigger conversation_reply_percent and [p]aiuser trigger conversation_reply_time