Skip to content

Commit 16d1103

Browse files
authored
⚡ feat (release 🤖): Stelle v3.1.1 🎉(#28)
* 📦Updated dependencies. * ✉️ Added the function to resume players when a node is down. * 📨 Updated markdown files. * 🏮 Also updated the application.yml example. * 🏮 Also added the `FAQ` section. * 🐐 Some code changes.
2 parents 09d5997 + 98d71a0 commit 16d1103

File tree

27 files changed

+506
-329
lines changed

27 files changed

+506
-329
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#
1212

1313
# The Discord application token.
14+
# Replace the 'the-knave-was-there' with your own token.
1415
TOKEN = "the-knave-was-there"
1516

1617
# The MongoDB database URL.
18+
# Remove the text and replace it with your own database URL.
1719
DATABASE_URL = "mongodb+srv://ganyu:supremacy@liyue/dbname?retryWrites=true&w=majority"
1820

1921
#

FAQ.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
## 🔎 FAQ
22

3-
> WIP
3+
* Something is missing? Please let me know.
4+
5+
---
6+
7+
### 🔎 Q: I'm getting: `Error: 401: Unauthorized 0`
8+
![Q](https://i.imgur.com/QnpxyTb.png)
9+
* R: Make sure you filled the `.env` file with a valid discord token.
10+
11+
---
12+
13+
### 🔎 Q: I'm getting: `Error: Missing Access 50001`
14+
![Q](https://i.imgur.com/pxEf72k.png)
15+
* R1: If you already changed the IDs in the config, please rebuild the code.
16+
* R2. Go to [`Configuration.ts`](/src/structures/utils/data/Configuration.ts) and change the `guildIds` array,
17+
18+
---
19+
20+
### 🔎 Q: I'm getting the prisma error: `Error: P1013`
21+
![Q](https://i.imgur.com/LzVyd0y.png)
22+
* R: Make sure you **followed** the example database url format. (or you can see it [here](https://www.prisma.io/docs/orm/overview/databases/mongodb#connection-details))
23+
24+
---
25+
26+
### 🔎 Q: I'm getting the MongoDB error: `Server selection timeout: No available servers.`
27+
![Q](https://i.imgur.com/X0QsqbJ.png)
28+
* R: You need to **WHITELIST** your IP in order to access your mongodb cluster.

INSTALLATION.md

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,69 @@ cd stelle-music
1616
pnpm i
1717
```
1818

19+
### 📋 Database
20+
* Stelle uses Prisma ORM to manage the database.
21+
22+
When prisma is installed the first time (or update prisma) prisma needs to generate the types to work.
23+
24+
1. Run `pnpm prisma generate` to generate the types
25+
26+
This also applies when you make changes in the [schema](/prisma/schema.prisma), you need to generate the new types.
27+
28+
> [!NOTE]
29+
> You can execute also `pnpm prisma db push` to synchronize the database.<br/>
30+
> This needs to be executed when you make changes in the [schema](/prisma/schema.prisma) (It's not mandatory, but I recommend it.)
31+
32+
33+
### 📋 Environment Variables
34+
* Stelle needs some environment variables to work.
35+
36+
1. Copy the `.env.example` file. (localed in the root of the project)
37+
2. Rename the file to: `.env`.
38+
3. Fill the required variables. ([available variables](/.env.example))
39+
40+
> [!IMPORTANT]
41+
> You need to follow the `DATABASE_URL` example url format.<br/>
42+
> You can learn more about the prisma url format [here](https://www.prisma.io/docs/orm/overview/databases/mongodb#connection-details)
43+
1944
### 📋 Configuration
2045
* Stelle has a configuration to save a specific data.
2146

22-
> 1. Go to [the configuration](/src/structures/utils/data/Configuration.ts#L17-L22)
47+
> 1. Go to [the configuration](/src/structures/utils/data/Configuration.ts#L18-L23)
2348
> 2. Replace the IDs with your IDs.
2449
2550
> Example:
2651
```js
2752
guildIds: [
28-
"123", // Example Guild
29-
"456", // Example Guild 2
53+
"123", // Example guild id
54+
"456", // Another example guild id
55+
...
56+
];
57+
```
58+
59+
---
60+
61+
* Don't forget to change the channel ids.
62+
> 1. Go to [the configuration](/src/structures/utils/data/Configuration.ts#L39-L42)
63+
> 2. Replace the IDs with your IDs.
64+
65+
```js
66+
channels: {
67+
guildsId: "1234", // Example channel id
68+
errorsId: "45678", // Another example channel id
69+
}
70+
```
71+
72+
---
73+
74+
* Don't forget to change the user ids.
75+
> 1. Go to [the configuration](/src/structures/utils/data/Configuration.ts#L15-L17)
76+
> 2. Replace the IDs with your IDs.
77+
78+
```js
79+
developerIds: [
80+
"1234", // Example user id
81+
"5678", // Another example user id
3082
...
3183
];
3284
```
@@ -37,25 +89,18 @@ guildIds: [
3789
Run the bot in `Javascript`
3890

3991
```bash
40-
#This is necessary for typescript.
41-
pnpm prisma generate #Generate types for prisma.
42-
43-
#Or you can do it step-by-step
44-
pnpm clean #Will re-create the dist folder
45-
pnpm start #Will start the bot
92+
pnpm clean # Will re-create the dist folder
93+
pnpm start # Will start the bot
4694
```
4795

4896
Run the bot in `Typescript`
4997

5098
```bash
51-
#This is necessary for typescript.
52-
pnpm prisma generate #Generate types for prisma.
53-
54-
#And run it!
99+
# Run it!
55100
pnpm dev
56101

57102
```
58103

59104
### 🔎 Looking for a lavalink node?
60-
> Stelle needs a [`Lavalink node`](https://github.com/lavalink-devs/Lavalink) to play music.
105+
> Stelle needs a [`Lavalink node`](https://github.com/lavalink-devs/Lavalink) to play music.<br/>
61106
> See [self hosting a node](/LAVALINK.md) for more.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ She has been created with the following technologies:
2020

2121
## ⚙️ Minimum Requeriments
2222

23-
- [PNPM v9.2x](pnpm.io/installation)
24-
- [NodeJS v.20.14x](https://nodejs.org/en/download/prebuilt-installer)
23+
- [PNPM v9.15.0x](pnpm.io/installation)
24+
- [NodeJS v.22.11.0x](https://nodejs.org/en/download/prebuilt-installer)
2525
- [Visual Studio Code](https://code.visualstudio.com)
26+
- [MongoDB Database](https://www.mongodb.com/) (You can create a _free*_ mongodb cluster)
2627

2728
See the the [how to install](/INSTALLATION.md) for more.
2829

0 commit comments

Comments
 (0)