Skip to content

CodeBuddy Quiz Cog – No reactions added for correct or wrong answers in quiz channel #18

@youngcoder45

Description

@youngcoder45

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:

  1. Wait for a quiz question to appear in the quiz channel
  2. Send an answer like a, b, c
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions