Skip to content

Dev#31

Merged
zbejas merged 25 commits intomainfrom
dev
Dec 29, 2025
Merged

Dev#31
zbejas merged 25 commits intomainfrom
dev

Conversation

@zbejas
Copy link
Owner

@zbejas zbejas commented Dec 29, 2025

This pull request introduces several major improvements to the project, including migrating from Bun to Node.js for both development and production, updating the Docker build process, enhancing the handling and display of TV programme metadata (such as season, episode, and subtitles), and improving Discord command typings and interactions. Additionally, there are dependency updates and various codebase cleanups.

Migration from Bun to Node.js & Docker Improvements:

  • Switched the runtime environment from Bun to Node.js v22+, updating .nvmrc, Dockerfile, and README.md to reflect Node.js as the required runtime, and reworking scripts and commands accordingly. [1] [2] [3] [4] [5]
  • Refactored the Docker build to use a multi-stage Node.js-based process, removing Bun installation and related commands, and ensuring production builds run with optimized dependencies. [1] [2]

Programme Metadata Enhancements:

  • Expanded the ProgrammeEntry interface to include optional fields for subtitle, episode/season numbers, icons, images, date, and previously shown status, enabling richer metadata for TV programmes.
  • Updated embed generators to display season and episode information, subtitles, and improved formatting for programme listings and details in Discord messages. [1] [2] [3] [4] [5]

Discord Command Typings & Interactions:

  • Migrated all Discord command handlers to use ChatInputCommandInteraction for improved type safety and future compatibility, updating parameter handling and options parsing throughout the command modules. [1] [2] [3] [4] [5] [6] [7] [8]
  • Improved interaction cleanup logic by ensuring timeouts are cleared when collectors end, preventing potential memory leaks in paginated message interactions. [1] [2]

Dependency and Script Updates:

  • Updated dependencies to latest versions for improved stability and compatibility, and revised npm scripts to support development, production, and build workflows using Node.js tools (tsx, typescript).
  • Adjusted peer and dev dependencies to match new requirements, removing Bun-specific types and adding Node.js types.

Codebase Cleanups & Minor Improvements:

  • Refactored database and IPTV module function names for clarity (e.g., fillDbChannelssyncPlaylistChannels), and improved fetch logic with better memory handling and retry/backoff strategies. [1] [2] [3] [4] [5]

These changes collectively modernize the codebase, improve maintainability, and enhance the user experience for both developers and Discord bot users.

zbejas added 25 commits August 21, 2025 15:41
- bump @dank074/discord-video-stream from 5.0.1 to 5.0.2
- update @types/fluent-ffmpeg from 2.1.27 to 2.1.28
- upgrade axios from 1.9.0 to 1.13.2
- upgrade discord.js from 14.19.3 to 14.25.1
- bump discord.js-selfbot-v13 from 3.6.1 to 3.7.1
- update winston from 3.17.0 to 3.19.0
… including unmatched channels and programme distribution
…th apk, and adjust npm scripts in package.json
- Removed Bun-specific environment handling in favor of Node.js process.env
- Updated package.json scripts for development and production
- Adjusted TypeScript configuration for better compatibility with Node.js
- Improved directory handling for logs and data
- Updated devDependencies to use @types/node instead of @types/bun
@zbejas zbejas merged commit 0f44827 into main Dec 29, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant