Skip to content

Add /feedback and /botbug commands for the bot's own iteration #45

Description

@Kingvic300

Summary

Add /feedback and /botbug commands so the bot's own maintainer(s) get a lightweight, low-friction channel for issues/suggestions about the bot itself, surfaced as GitHub issues rather than lost in chat scrollback.

Background

This session alone added 35 open issues to txio-telegram-bot covering substantial new functionality (per-repo routing, review notifications, releases, commands, scheduling, etc.). As that surface grows, friction encountered by actual users of the bot (wrong formatting, a command that doesn't behave as expected) currently has no capture mechanism other than someone remembering to open a GitHub issue manually.

Proposed Solution

/feedback <text> and /botbug <text> post the submitted text as a new GitHub issue on txio-telegram-bot (tagged feedback or bug respectively), crediting the submitter, using the GitHub API client from issue #4 (requires issues:write scope, same requirement noted in issue #6).

Technical Scope

  • src/telegram/client.tsbot.command("feedback", ...), bot.command("botbug", ...)
  • Reuses src/github/api.ts from issue Add release published notifications #4, extended for issue creation (write access)
  • Tests: issue-creation payload formatting, empty-text handling

Acceptance Criteria

  • /feedback <text> creates a GitHub issue labeled feedback with the submitted text and submitter attribution
  • /botbug <text> creates a GitHub issue labeled bug the same way
  • Empty/missing text argument produces a usage message, not a blank issue
  • Confirmation message posted back to the submitter with a link to the created issue
  • Unit tests added
  • CI passes
  • Code follows project conventions

Edge Cases

  • Rate limiting / spam — a single user submitting many /feedback calls in a row could flood the issue tracker; consider a basic per-user rate limit
  • Very long submitted text exceeding GitHub issue body practical limits — truncate with a note rather than fail silently

Risks

Deliverables

  • Feature implementation
  • Unit tests

Labels

enhancement, backend

Priority

Low — nice-to-have iteration tool, not blocking anything else in this backlog.


Estimated Completion: 96 hours

Telegram: https://t.me/txioCommunity


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Third CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions