Template project (Issues setting up from scratch)
is there a skeleton sapphire project somewhere? I am having issues setting up even this https://www.sapphirejs.dev/docs/Guide/getting-started/getting-started-with-sapphire with typescript. something about
node:31148) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension
. and TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\Documents\Git Projects\Lyra-Bot\src\index.ts
when switching the index.js
extension to .ts
. I am using node 20.10.0.
thank you!Sapphire Framework
Getting started with Sapphire | Sapphire
To install Sapphire, you need to install both discord.js and
Solution:Jump to solution
There are several options
1. @sapphire/cli can generate a new start
2. Those are taken from https://github.com/sapphiredev/examples so you can also do it manually
3. There are many open source bots that you can look at:...
GitHub
GitHub - sapphiredev/examples: Various examples of setting up your ...
Various examples of setting up your bot with the Sapphire Framework - GitHub - sapphiredev/examples: Various examples of setting up your bot with the Sapphire Framework
9 Replies
Solution
There are several options
1. @sapphire/cli can generate a new start
2. Those are taken from https://github.com/sapphiredev/examples so you can also do it manually
3. There are many open source bots that you can look at:
GitHub
GitHub - sapphiredev/examples: Various examples of setting up your ...
Various examples of setting up your bot with the Sapphire Framework - GitHub - sapphiredev/examples: Various examples of setting up your bot with the Sapphire Framework
Discord Bots using @sapphire/framework
v5.x
- Gemboard ᴱ ᴰ
- Dragonite ᴱ ᴰ
- Archangel ᴱ ᴰ
- Official Bot Examples ᴱ ᴰ ᴶˢ
v4.x
- Radon ᴱ ᴬ
- Sapphire Application Commands Examples ᴱ
- Zeyr ᴰ ᴬ
- Birthdayy ᴰ
- KBot ᴱ ᴬ ᴰ
- RTByte ᴱ ᴬ
Outdated bots / honourable mentions
- Skyra ᴬ ᴰ
Legend for the identifiers
ᴱ: Uses ESM (if not specified then uses CJS)
ᴬ: Advanced bot (if not specified it is a simple bot, or not graded)
ᴰ: Uses Docker in production
ᴶˢ: Written in JavaScript. If not specified then the bot is written in TypeScript.
Sure just remove my bot that's fine 😒
Lmao update it then. I checked all bots and removed all the ones using older versions than v4 or using "next". In case of the latter because it's unclear what version is actually used. The only reason skyra is there is because she's in this server.
I'll gladly, no, eagerly add it back when your bot is on v5. It felt really bad to cut down the list so much.
the only reason skyra is there is because of nepotism
You're not fooling anyone favvy wavvy
thank you so much!:) I appreciate the help
I’ll mark as solved when I’m at my PC
I got u
thank you!!