mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
4.0 KiB
4.0 KiB
phase, title, status, owner
| phase | title | status | owner |
|---|---|---|---|
| 1 | Code rebrand | done | agent |
Phase 1 — Code rebrand
Context
Every in-repo miti99bot occurrence, listed in the
scout report. The bot's
own username is already runtime-resolved (BOT_USERNAME or getMe), so nothing
here depends on the new Telegram account.
Steps
- Go module path. In
go.mod, change it togithub.com/tiennm99/tiennm99bot, then rewrite every import:git ls-files '*.go' | xargs sed -i 's#github.com/tiennm99/miti99bot#github.com/tiennm99/tiennm99bot#g'.util/help.gorepoURLandutil/help_test.gofollow from the same sed. - Runtime strings →
tiennm99bot:internal/server/health.gohealth body, plus thecompose.ymlanddocs/deploy-coolify-selfhosted.mdtext that quotes it.internal/deploynotify/deploy_notify.goDM text, plus its test.- User-Agents in
coin/price_providers.go,gold/vnappmob_client.go(×2),stock/prices_ssi.go,lol/api_client.go(userAgentProduct), plusstock/prices_test.goandlol/api_client_test.go. monkeyd/export_job.gocacheDirName.renderer/src/gacha/page/page.jsedition label.
- Sticker slug. Set
sticker/sticker_pack.godefaultStickerPackSlugto the confirmed slug (proposedstickers). Update the comment example and the tests (addsticker_command_test.go,sticker_pack_test.go), plus the examples indocs/sticker-packs.md,.env.exampleandcompose.yml. - Test fixtures. Change
/cmd@miti99botto@tiennm99botinmodules/dispatcher_test.goandalias/fallback_test.go, and the comment instats/views.go. Change the test DB prefixesmiti99bot_*totiennm99bot_*in four*_mongo*_test.gofiles. Update thesticker_pack_test.gousername fixture. Leavemisc/handlers_test.go@miti99alone, because it is a user handle. - loldle stickers. Update the
loldle/stickers.gocomment to name @tiennm99bot. The file_ids are replaced in phase 2, because they need the new bot. - Build/deploy config.
.github/workflows/ci.ymlimage tagstiennm99bot,tiennm99bot-renderer.compose.yml: the commented GHCR image and the DB example..env.example: the header andMONGO_DATABASE=tiennm99bot.renderer/package.jsonnametiennm99bot-renderer. Regenerate the lock file withnpm install --package-lock-onlyinrenderer/; do not edit it by hand.
- Docs.
README.md(title, local mongo container name,_devDB),AGENTS.md,CLAUDE.md,docs/deploy-coolify-selfhosted.md.renderer/README.md,renderer/docs/deployment.md.git mv renderer/docs/miti99bot-integration.md renderer/docs/tiennm99bot-integration.md, then fix its links (git grep -n miti99bot-integration).
- Sweep.
git grep -n -i miti99bot -- ':!plans'must be empty. Review any remainingmiti99hits by hand.
Validation
gofmt -l . && go vet ./... && go test -race -count=1 ./... && go build ./...
(cd renderer && npm ci && npm run lint && npm run typecheck && npm test)
docker build -t tiennm99bot . && docker build -t tiennm99bot-renderer renderer
Commit
Use two focused conventional commits on main:
feat(config): resolve the bot username from BOT_USERNAME or getMe(the existing uncommitted change)refactor!: rebrand miti99bot to tiennm99bot
The body notes that the default sticker pack and the module path changed. Delay the push to the cutover in phase 2 if the old bot should keep its old strings.
Risk and rollback
- Go module path change: purely mechanical, and the build and tests catch any miss.
- Pushing deploys to Coolify. If it is pushed before cutover, the only visible
effects are new strings and a new default pack name on the old bot, where
/addstickerwould createstickers_by_miti99bot. To avoid that, setSTICKER_PACK_NAME=miti99_by_miti99botin Coolify until cutover, or hold the push. - Rollback:
git revertthe rebrand commit.