Skip to content

Add /license and /coc quick-link commands #41

Description

@Kingvic300

Summary

Add /license and /coc commands that link directly to the LICENSE and CODE_OF_CONDUCT.md files now present in txio-telegram-bot, txio-backend, txio-cli, and txio-desktop, so anyone in the group can get the canonical link without leaving Telegram.

Background

This session added LICENSE (MIT) and CODE_OF_CONDUCT.md (Contributor Covenant) to all four Txio repos, matching the conventions already established in the Txio-labs/txio monorepo. There is currently no in-chat pointer to either document.

Proposed Solution

Two trivial static-response commands: /license returns the MIT license summary and a link to the relevant repo's LICENSE file; /coc returns a short pointer to CODE_OF_CONDUCT.md and how to report a concern.

Technical Scope

  • src/telegram/client.tsbot.command("license", ...), bot.command("coc", ...)
  • src/config.ts — repo URL(s) to link to (may depend on the per-repo routing config from issue test issue #1 if this needs to resolve "which repo" contextually; otherwise a single static link is sufficient for v1)
  • Tests: command output content

Acceptance Criteria

  • /license returns MIT summary + link to LICENSE
  • /coc returns a summary + link to CODE_OF_CONDUCT.md
  • Links resolve correctly for whichever repo(s) the bot is configured against
  • Unit tests added
  • /help includes both once issue Add release published notifications #4 lands
  • CI passes
  • Code follows project conventions

Edge Cases

  • Multi-repo tracking (post issue test issue #1) — decide whether /license//coc link to one canonical repo or accept a repo argument
  • Broken links if a repo is renamed or the docs move — no special handling needed beyond keeping the config accurate

Risks

  • Minimal — static content, no external dependencies

Deliverables

  • Feature implementation
  • Unit tests

Labels

enhancement, backend, good first issue, documentation

Priority

Low — trivial effort, directly ties to docs just added, no urgency.


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