Fix: Hooter responding to @here and @everyone mentions
Description
Currently, Hooter the Tutor bot is responding to messages that include @here or @everyone mentions. This is unintended behavior as these mentions are not specifically directed at the bot. It can lead to unnecessary bot responses and potential spam in busy channels.
Current Behavior
When a user sends a message with @here or @everyone, Hooter responds as if it was directly mentioned.
This occurs in all channels where Hooter has permission to read messages.
Expected Behavior
Hooter should only respond when it is directly mentioned (@Hooter) or when a command prefix is used.
Messages containing @here or @everyone should be ignored by Hooter unless they also include a direct mention of Hooter or a command prefix.
Steps to Reproduce
In any channel where Hooter is present, send a message with @here or @everyone.
Observe that Hooter responds to the message.
Proposed Solution
Modify the message event handler to explicitly check for direct mentions of the bot, ignoring @here and @everyone mentions.
Tasks
[ ] Update the on_message event handler in events.py
[ ] Add a check to differentiate between direct bot mentions and @here/@everyone mentions
[ ] Test the solution in a development environment
[ ] Update any relevant documentation or command help text
Testing Plan
Test with various message scenarios:
Messages with @here
Messages with @everyone
Messages with both @here/@everyone and a direct bot mention
Messages with only a direct bot mention
Messages with the command prefix
Ensure the bot responds correctly in each scenario
Definition of Done
Hooter no longer responds to @here or @everyone mentions unless directly mentioned
Fix: Hooter responding to @here and @everyone mentions
Description
Currently, Hooter the Tutor bot is responding to messages that include @here or @everyone mentions. This is unintended behavior as these mentions are not specifically directed at the bot. It can lead to unnecessary bot responses and potential spam in busy channels.
Current Behavior
Expected Behavior
Steps to Reproduce
Proposed Solution
Modify the message event handler to explicitly check for direct mentions of the bot, ignoring @here and @everyone mentions.
Tasks
on_message
event handler inevents.py
Testing Plan
Definition of Done