The codebuddy_quiz cog automatically posts quiz questions in the quiz channel. Users answer by simply typing a, b, c in the channel. However, the bot does not react to answers with either a correct or incorrect reaction.
Current Behavior:
- Quiz questions are posted automatically in the quiz channel
- Users answer by sending
a, b, c
- The bot detects the message but does not add any reaction
- No feedback is given to the user
Expected Behavior:
-
When a user sends the correct option, the bot should react with:
✅ :white_check_mark:
-
When a user sends the wrong option, the bot should react with:
❌ :x:
This reaction should be added to the user's message so they immediately know whether their answer was correct.
Steps to Reproduce:
- Wait for a quiz question to appear in the quiz channel
- Send an answer like
a, b, c
- Observe that the bot does not react with either ❌ or ✅
Expected Logic:
The bot should:
- Listen for messages in the quiz channel
- Check if the message content is
a, b, c, or d
- Compare the answer with the stored correct answer
- React to the user's message accordingly
Cog Affected:
codebuddy_quiz