Skip to content

v2.0

Compare
Choose a tag to compare
@barthofu barthofu released this 18 Oct 09:35
· 84 commits to main since this release

🎉 TSCord template v2.0 🎉

With this version, TSCord is no longer a simple bot template, but a whole ecosystem that will enhance the experience of both developers and users!

Indeed, we can finally and proudly announce the release of 4 major components in the TSCord project:

  • Plugins: it is now finally possible to actually extend the base of TSCord through plugins.
  • Static website: give your bot a beautiful landing page with key information on it (features, stats, commands, articles, etc). It is built using Next.js as a full static website and is totally SEO friendly.
  • Dashboard: you want to monitor all your bots in real time, see statistics, manage guilds or database backups? The TSCord dashboard is here for you!
  • CLI: the brand new CLI will permit you to initialize a new TSCord project, manage plugins and generate template files.

Plus, the documentation is finally done and stable!
Don't hesitate to make PRs in order to improve it 😉 (the repo is here)

New features

  • Switch the api from @discordx/koa to tsed for a better DX and in order to have a Swagger UI page
  • New endpoints:
    • /: check if the API is running
    • /stats/guilds/last
    • /docs: Swagger UI page (to watch in a browser)
  • Send automatically handled errors to discord
  • Full support of Slash groups and subcommands
  • Add a .getByTags() method the Image custom repository to easily find images by tags
  • Add a lot of native discord events thanks to androz2091/discord-logs
  • Add .kill() method to BaseError class which stops the bot process when called

Enhancements

  • Switch typescript compiler from tsc to swc in order to gain -50% build/dev run time!
  • Bump dependencies versions
  • Change of some endpoints routes in the API to follow the Open API specs
  • Switch from sqlite to better-sqlite for the default database driver
  • Abstraction of the database type
  • All the boilerplate code of the template is now localized
  • Full support and optional usefull abstractions of nameLocalizations and descriptionLocalizations in decorators (such as @Slash(), @ContextMenu(), etc)
  • Assets are now uploaded recursively
  • Beautify and customize discord channel logs
  • Add typings to resolveDependencies

Fixes

  • Handle wrong behaviors of imgur assets upload
  • Switch to .fetch for discord.js cache interaction when possible
  • Remove auto-defer for MessageComponents
  • API server and WebSocket client are now optional and disabled by default

Refactors

  • Rename serve npm script to start
  • Rename method <Database>.getRepo() to <Database>.get()
  • Rename waitForDependency and waitForDependencies to resolveDependency and resolveDependencies

Auto-generated changelogs

What's Changed

New Contributors

Full Changelog: v1.1.0...v2.0.0