- Trying to run Stelle? Here are a few brief steps.
- I will assume you have the requirements to even get started.
- There is not much science on this.... Right?
git clone https://github.com/Ganyu-Studios/stelle-music.git
- There is not much science on this.
cd stelle-music
pnpm i
- Stelle uses Prisma ORM to manage the database.
When prisma is installed the first time (or update prisma) prisma needs to generate the types to work.
- Run
pnpm prisma generate
to generate the types
This also applies when you make changes in the schema, you need to generate the new types.
Note
You can execute also pnpm prisma db push
to synchronize the database.
This needs to be executed when you make changes in the schema (It's not mandatory, but I recommend it.)
- Stelle needs some environment variables to work.
- Copy the
.env.example
file. (localed in the root of the project) - Rename the file to:
.env
. - Fill the required variables. (available variables)
Important
You need to follow the DATABASE_URL
example url format.
You can learn more about the prisma url format here
- Stelle has a configuration to save a specific data.
- Go to the configuration
- Replace the IDs with your IDs.
Example:
guildIds: [
"123", // Example guild id
"456", // Another example guild id
...
];
- Don't forget to change the channel ids.
- Go to the configuration
- Replace the IDs with your IDs.
channels: {
guildsId: "1234", // Example channel id
errorsId: "45678", // Another example channel id
}
- Don't forget to change the user ids.
- Go to the configuration
- Replace the IDs with your IDs.
developerIds: [
"1234", // Example user id
"5678", // Another example user id
...
];
- Stelle is made in
Typescript
but she can runs inJavascript
.
Run the bot in Javascript
pnpm clean # Will re-create the dist folder
pnpm start # Will start the bot
Run the bot in Typescript
# Run it!
pnpm dev
Stelle needs a
Lavalink node
to play music.
See self hosting a node for more.