🤖 A fully-featured discord bot template written in Typescript, intended to provide a framework that's easy to use, extend and modify
MIT License
Bot releases are hidden (Show)
This is the changelog, you can see the migration guide from the v2.2
here.
This update mainly focus on 3 things:
[!WARNING]
If you want to see the changes coming alongside this PR, check commit per commit because we've ran the new code formater and it has changed by default the style of nearly all the files.
antfu/eslint-config
as base (#128)@Service
decorator for @singleton
, which can take a keepInstanceAfterHmr
parameter in order to keep the instance state between HMR reloads (e.g: Store
service)@Injectable
and @AutoInjectable
of respectively @injectable
and @autoInjectable
to uniformize names and import source (@/decorators
instead of tsyringe
)discordx
client config in the src/client.ts
file (https://github.com/barthofu/tscord/commit/6f83ffb040cb3fd1cf4a6272e7870d5e28e1b380)swc
to tsc
in order to improve stability at the cost of little speed deperdition (#135)@<module_name>
to @/<module_name>
(e.g: @services
-> @/services
)botOnline
api middleware HTTP request (https://github.com/barthofu/tscord/commit/80600432a1177dc9a565386fad751132ad103189)eval
from the code, for security concerns (https://github.com/barthofu/tscord/commit/60baa42300ce65c56e37460cfa33db05a5e19613)typesafe-i18n
logs at startup (https://github.com/barthofu/tscord/commit/c570dded0c569fb5a22e5b0d3f3b1206d7662ff7)isJSONEncodable isn't a function at startup
(https://github.com/barthofu/tscord/commit/65338ea451a987d5daee529ee83c051166c14c1f)This is the changelog, you can see the migration guide from the v2.1
here.
get
method returns any
(#120)This is the changelog, you can see the migration guide from the v2.0
here.
templateReady
custom event (#90)/help
command (#117)botOnline
middleware erroring with ipv6satisfies
operator in configs (#96)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:
Plus, the documentation is finally done and stable!
Don't hesitate to make PRs in order to improve it 😉 (the repo is here)
@discordx/koa
to tsed
for a better DX and in order to have a Swagger UI page/
: check if the API is running/stats/guilds/last
/docs
: Swagger UI page (to watch in a browser).getByTags()
method the Image custom repository to easily find images by tags.kill()
method to BaseError
class which stops the bot process when calledtsc
to swc
in order to gain -50% build/dev run time!sqlite
to better-sqlite
for the default database drivernameLocalizations
and descriptionLocalizations
in decorators (such as @Slash()
, @ContextMenu()
, etc)resolveDependencies
.fetch
for discord.js cache interaction when possibleserve
npm script to start
<Database>.getRepo()
to <Database>.get()
waitForDependency
and waitForDependencies
to resolveDependency
and resolveDependencies
tsc
to swc
by @barthofu in https://github.com/barthofu/tscord/pull/21
discordx
to 11.1.8
by @barthofu in https://github.com/barthofu/tscord/pull/26
client_id
by @barthofu in https://github.com/barthofu/tscord/pull/27
validator
middleware returns 400
res by @barthofu in https://github.com/barthofu/tscord/pull/28
/
endpoint to check if API is running by @barthofu in https://github.com/barthofu/tscord/pull/30
.fetch
for cache interaction when possible by @Mr-Artemus in https://github.com/barthofu/tscord/pull/35
sqlite
to better-sqlite
on mikro-orm by @barthofu in https://github.com/barthofu/tscord/pull/41
discordx
to v11.2.0
by @barthofu in https://github.com/barthofu/tscord/pull/74
routing-controllers
to tsed
by @barthofu in https://github.com/barthofu/tscord/pull/82
Full Changelog: https://github.com/barthofu/tscord/compare/v1.1.0...v2.0.0
Published by barthofu about 2 years ago
tsc
to swc
by @barthofu in https://github.com/barthofu/tscord/pull/21
discordx
to 11.1.8
by @barthofu in https://github.com/barthofu/tscord/pull/26
client_id
by @barthofu in https://github.com/barthofu/tscord/pull/27
validator
middleware returns 400
res by @barthofu in https://github.com/barthofu/tscord/pull/28
/
endpoint to check if API is running by @barthofu in https://github.com/barthofu/tscord/pull/30
.fetch
for cache interaction when possible by @Mr-Artemus in https://github.com/barthofu/tscord/pull/35
sqlite
to better-sqlite
on mikro-orm by @barthofu in https://github.com/barthofu/tscord/pull/41
info
command by @barthofu in https://github.com/barthofu/tscord/pull/47
Full Changelog: https://github.com/barthofu/tscord/compare/v1.0.0...v1.1.0
Published by barthofu over 2 years ago