Réécriture complète 4.0
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6m16s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Schema, Types, model } from 'mongoose'
|
||||
import { Schema, Types, model } from "mongoose"
|
||||
|
||||
const guildSchema = new Schema({
|
||||
_id: Types.ObjectId,
|
||||
@@ -6,27 +6,20 @@ const guildSchema = new Schema({
|
||||
guildName: { type: String, required: true },
|
||||
guildIcon: { type: String, required: true },
|
||||
guildPlayer: {
|
||||
replay: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
textChannelId: { type: String, required: false },
|
||||
voiceChannelId: { type: String, required: false },
|
||||
trackUrl: { type: String, required: false },
|
||||
progress: { type: Number, required: false }
|
||||
},
|
||||
instances: [{
|
||||
botId: { type: String, required: true },
|
||||
replay: {
|
||||
textChannelId: { type: String, required: false },
|
||||
voiceChannelId: { type: String, required: false },
|
||||
trackUrl: { type: String, required: false },
|
||||
progress: { type: Number, required: false }
|
||||
}
|
||||
}],
|
||||
disco: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
channelId: { type: String, required: false }
|
||||
}
|
||||
},
|
||||
guildRss: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
channelId: { type: String, required: false },
|
||||
feeds: [{
|
||||
name: { type: String, required: false },
|
||||
url: { type: String, required: false },
|
||||
token: { type: String, required: false }
|
||||
}]
|
||||
},
|
||||
guildAmp: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
host: { type: String, required: false },
|
||||
@@ -40,17 +33,26 @@ const guildSchema = new Schema({
|
||||
version: { type: Number, required: false },
|
||||
appToken: { type: String, required: false },
|
||||
sessionToken: { type: String, required: false },
|
||||
password_salt: { type: String, required: false }
|
||||
password_salt: { type: String, required: false },
|
||||
lcd: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
botId: { type: String, required: false },
|
||||
morningTime: { type: String, required: false },
|
||||
nightTime: { type: String, required: false }
|
||||
}
|
||||
},
|
||||
guildTwitch: {
|
||||
enabled: { type: Boolean, required: true },
|
||||
channelName: { type: String, required: false },
|
||||
channelAccessToken: { type: String, required: false },
|
||||
channelRefreshToken: { type: String, required: false },
|
||||
liveChannelId: { type: String, required: false },
|
||||
liveMessageId: { type: String, required: false },
|
||||
liveBroadcasterId: { type: String, required: false }
|
||||
botId: { type: String, required: false },
|
||||
channelId: { type: String, required: false },
|
||||
streamers: [
|
||||
{
|
||||
twitchUserId: { type: String, required: true },
|
||||
discordUserId: { type: String, required: false },
|
||||
messageId: { type: String, required: false }
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
export default model('Guild', guildSchema, 'guilds')
|
||||
export default model("Guild", guildSchema, "guilds")
|
||||
|
||||
Reference in New Issue
Block a user