mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2025-09-21 06:41:35 +01:00
Some checks are pending
Docker / build (push) Waiting to run
* add simple music functionality * update workflow * update Dockerfile * update Dockerfile * update Dockerfile * update Dockerfile * add few more music commands * add lyrics command * update lyrics command * add loop, and add categories to all commands * change discord status * seperate distube and change startup console theme * Update README * UPDATE LICENSE file * fix docker compose image, add better error handling for distube and update tagging workflow * switch to node-alpine image for docker * switch to node-alpine image for docker * update ascii * music commands imporvements, implement live lyrics, some guards and bot leaving on empty * use ffmpeg package rather than ffmpeg-static
16 lines
650 B
JavaScript
16 lines
650 B
JavaScript
const { Schema, model } = require("mongoose");
|
|
|
|
const MusicSettingsSchema = new Schema(
|
|
{
|
|
guildId: { type: String, unique: true, index: true, required: true },
|
|
defaultVolume: { type: Number, default: 100, min: 0, max: 200 },
|
|
autoplay: { type: Boolean, default: false },
|
|
allowedTextChannelIds: { type: [String], default: [] }, // empty => all allowed
|
|
djRoleIds: { type: [String], default: [] },
|
|
maxQueue: { type: Number, default: 1000, min: 1, max: 5000 },
|
|
maxPlaylistImport: { type: Number, default: 500, min: 1, max: 2000 },
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
module.exports = model("MusicSettings", MusicSettingsSchema);
|