Update the Bot.ts framework into v9.0.0 #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to the codebase, focusing on migrating the project to use Bun, updating configuration files, and improving build and deployment processes. Below are the most important changes:
Migration to Bun:
Dockerfile
: Changed the base image tooven/bun:latest
and updated commands to use Bun instead of npm.package.json
: Updated scripts to use Bun commands (bun run
,bunx
, etc.) and added new dependencies for Bun. [1] [2] [3] [4]compatibility.json
: Added configurations for Bun, including commands for building, testing, and running the bot.Configuration updates:
.github/workflows/tests.yml
: Created a new GitHub Actions workflow for running tests on Bun v1.1.34..template.env
: Added environment variable placeholders needed for the bot's configuration.eslint.config.mjs
: Refactored ESLint configuration and added new alias mappings. [1] [2] [3]Build and deployment improvements:
rollup.config.mjs
: Added Rollup configuration with plugins for aliasing, resolving node modules, and TypeScript support.scripts/copy-keepers.js
: Created a script to copy.keep
files from the source to the distribution directory.scripts/generate-readme.js
: Created a script to generate thereadme.md
file dynamically based on the bot's configuration and commands.These changes streamline the development process, improve compatibility, and enhance the overall project configuration.