-
-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor .gitignore and .env.example files, update playlist commands,…
… and fix bugs in config and client events
- Loading branch information
Showing
24 changed files
with
704 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,5 @@ | |
|
||
/Lavalink/plugins | ||
|
||
lavamusic.db | ||
lavamusic.db-shm | ||
lavamusic.db-wal | ||
/prisma/lavamusic.db | ||
/prisma/migrations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// This is your Prisma schema file, | ||
// learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | ||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "mongodb" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Guild { | ||
guildId String @id @map("_id") | ||
prefix String | ||
stay Stay? | ||
dj Dj? | ||
roles Role[] | ||
botchannel Botchannel? | ||
setup Setup? | ||
} | ||
|
||
model Stay { | ||
guildId String @id @map("_id") | ||
textId String | ||
voiceId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Dj { | ||
guildId String @id @map("_id") | ||
mode Boolean | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Role { | ||
guildId String @id @map("_id") | ||
roleId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
@@unique([guildId, roleId]) | ||
} | ||
|
||
model Playlist { | ||
id String @id @map("_id") @default(cuid()) | ||
userId String | ||
name String | ||
songs Song[] | ||
@@unique([userId, name]) | ||
} | ||
|
||
model Song { | ||
id String @id @map("_id") | ||
track String | ||
playlistId String | ||
playlist Playlist @relation(fields: [playlistId], references: [id]) | ||
@@unique([track, playlistId]) | ||
} | ||
|
||
model Botchannel { | ||
guildId String @id @map("_id") | ||
textId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Setup { | ||
guildId String @id @map("_id") | ||
textId String | ||
messageId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Premium { | ||
userId String @id @map("_id") | ||
guildId String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// This is your Prisma schema file, | ||
// learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | ||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Guild { | ||
guildId String @id | ||
prefix String | ||
stay Stay? | ||
dj Dj? | ||
roles Role[] | ||
botchannel Botchannel? | ||
setup Setup? | ||
} | ||
|
||
model Stay { | ||
guildId String @id | ||
textId String | ||
voiceId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Dj { | ||
guildId String @id | ||
mode Boolean | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Role { | ||
guildId String | ||
roleId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
@@unique([guildId, roleId]) | ||
} | ||
|
||
model Playlist { | ||
id String @id @default(uuid()) | ||
userId String | ||
name String | ||
songs Song[] | ||
@@unique([userId, name]) | ||
} | ||
|
||
model Song { | ||
id String @id @default(uuid()) | ||
track String | ||
playlistId String | ||
playlist Playlist @relation(fields: [playlistId], references: [id]) | ||
@@unique([track, playlistId]) | ||
} | ||
|
||
model Botchannel { | ||
guildId String @id | ||
textId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Setup { | ||
guildId String @id | ||
textId String | ||
messageId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Premium { | ||
userId String @id | ||
guildId String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// This is your Prisma schema file, | ||
// learn more about it in the docs: https://pris.ly/d/prisma-schema | ||
|
||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | ||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "sqlite" | ||
url = "file:./lavamusic.db" | ||
} | ||
|
||
model Guild { | ||
guildId String @id | ||
prefix String | ||
stay Stay? | ||
dj Dj? | ||
roles Role[] | ||
botchannel Botchannel? | ||
setup Setup? | ||
} | ||
|
||
model Stay { | ||
guildId String @id | ||
textId String | ||
voiceId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Dj { | ||
guildId String @id | ||
mode Boolean | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Role { | ||
guildId String | ||
roleId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
@@unique([guildId, roleId]) | ||
} | ||
|
||
model Playlist { | ||
id String @id @default(uuid()) | ||
userId String | ||
name String | ||
songs Song[] | ||
@@unique([userId, name]) | ||
} | ||
|
||
model Song { | ||
id String @id @default(uuid()) | ||
track String | ||
playlistId String | ||
playlist Playlist @relation(fields: [playlistId], references: [id]) | ||
@@unique([track, playlistId]) | ||
} | ||
|
||
model Botchannel { | ||
guildId String @id | ||
textId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Setup { | ||
guildId String @id | ||
textId String | ||
messageId String | ||
Guild Guild @relation(fields: [guildId], references: [guildId]) | ||
} | ||
|
||
model Premium { | ||
userId String @id | ||
guildId String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.