Releases: TheCodingDad-TisonK/GitBot
Releases · TheCodingDad-TisonK/GitBot
v3.0.1 — Bug fixes & polish
What's fixed in v3.0.1
Bug fixes
- Polling never ran —
githubPoller.start()was missing from thereadyevent handler. Repos withpoll_enabledwere silently doing nothing. - Bot owner admin bypass never worked —
setBotOwnerIdwas receivingclient.user.id(the bot's own Discord ID) instead of the application owner's ID. Now resolved viaclient.application.fetch()at startup. - "Resend this embed" always errored — The context menu read channels from the legacy config (which returns
{}in V3). It now builds the picker fromdb.getAllRepositories(). database.jscrashed in sqlite3 fallback mode —init()calledrequire.resolve("better-sqlite3")which throwsMODULE_NOT_FOUNDwhen the package isn't installed, crashing before the sqlite3 fallback could work. Changed toDatabase.name === "Database".- sqlite3 path missing indexes —
_createTablesAsyncnever created the three performance indexes that_createTablesSynccreates (idx_repos_full_name,idx_repos_active,idx_tokens_default). - Dead
options.bodyin HTTP client —githubRequestsetoptions.bodywhich Node.jshttp.requestsilently ignores; the body was already sent correctly viareq.write.
Dead code removed
- Local
verifySignatureinindex.js(shadowed bymultiWebhook.js) route:confirm/route:undo/route:donebutton handlers — no/routecommand exists in V3- Duplicate app-level
/healthendpoint (shadowed by the router's version); its extrauptime/mutes/statsfields were merged into the router's handler - Unused
crypto,fs,pathimports inindex.js getRepoInfoimport inrepoCommands.js(was never called)- Standalone
checkAdmin(userId, botOwnerId)stub function
Polish
- Added missing
"use strict"toembeds.js repoCommandsarray now.toJSON()'d when merged intoallCommands(consistent with all other command arrays)- Fixed
"GitBot V2"author string in/testembed → GitBot V3 /testwith no channel arg now resolves the first active repo's channel instead of hardcoding"github-general"getRecentPullRequestsemptyif (since)stub removed- Poller synthetic push event now reads
repo.default_branchwith"main"as fallback (was hardcodedmain) getRepositoryByIdSyncrenamed to_getRepositoryByIdAsync— it was the async version; the name was backwards- Bumped version from mangled
3.0.0thi→3.0.1
V3 update | Multi repo support
Merge pull request #6 from TheCodingDad-TisonK/development GitBot V3 — Multi-Repo Support, Guided Webhook Setup & DM Confirmation Flow
First Release
v1.0 Create .env