iiitl / iiitl/Cp_Discord_Bot

[bug]: Improve CodeChef Scraper Robustness

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
bug hard
Dominant language
JavaScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Problem
- `/ccverify` relies on fragile page selectors and assumes table rows exist, which can crash when page layout changes or profile data is missing.

### Proposed Work
- Add null checks before indexing DOM collections.
- Improve selector fallback strategy.
- Return actionable user-facing error messages.

### Acceptance Criteria
- Command does not throw uncaught exceptions on missing selectors/rows.
- Clear reply is sent when scraping data is unavailable.

Contributor guide

Open the contributing guide

Research direction

Start at the `/ccverify` command and trace its CodeChef scraping flow, focusing on DOM selectors and table-row access. Verify behavior when selectors or profile data are missing, then confirm that the command avoids uncaught exceptions and sends a clear reply when scraping data is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.