mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 18:56:00 +00:00
fix
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
const YouTube = require("simple-youtube-api");
|
||||
const search = require("yt-search");
|
||||
const SpotifyApi = require("spotify-web-api-node");
|
||||
const {
|
||||
globaldb
|
||||
} = require("../../index.js");
|
||||
|
||||
module.exports = {
|
||||
name: "play",
|
||||
|
@ -1,5 +1,3 @@
|
||||
const { db } = require("../../../index-.js");
|
||||
|
||||
module.exports = {
|
||||
name: "message",
|
||||
async execute(client, msg, Discord) {
|
||||
@ -50,4 +48,4 @@ module.exports = {
|
||||
return msg.channel.send(client.messages.devMode);
|
||||
client.funcs.exe(msg, args, client, Discord, command);
|
||||
},
|
||||
};
|
||||
};
|
@ -26,7 +26,7 @@ module.exports = {
|
||||
};
|
||||
});
|
||||
}
|
||||
console.log(`- DB Set - Shard: ${client.shard.ids} -`);
|
||||
console.log(`- DB Set - Shard:${client.shard.ids} -`);
|
||||
client.user.setActivity(`@${client.user.username} help | 🎶`, {
|
||||
type: "LISTENING",
|
||||
});
|
||||
@ -54,4 +54,4 @@ module.exports = {
|
||||
client.funcs.ffmpeg(client, Discord);
|
||||
}, 7200000);
|
||||
},
|
||||
};
|
||||
};
|
@ -24,7 +24,7 @@ module.exports = class extends Client {
|
||||
this.queue = new Map();
|
||||
this.funcs = {};
|
||||
this.dispatcher = {};
|
||||
this.config = require("../../config/config.js");
|
||||
this.config = require("./config/config.js");
|
||||
this.messages = require("./config/messages.js");
|
||||
this.db = admin.firestore();
|
||||
this.db.FieldValue = require("firebase-admin").firestore.FieldValue;
|
||||
|
38
src/struct/config/config.js
Normal file
38
src/struct/config/config.js
Normal file
@ -0,0 +1,38 @@
|
||||
require("dotenv/config");
|
||||
|
||||
module.exports = {
|
||||
token: process.env.TOKEN,
|
||||
devToken: process.env.DEVTOKEN,
|
||||
dblKey: process.env.DBLKEY,
|
||||
api_key: process.env.GOOGLE_API_KEY,
|
||||
genius_api_key: process.env.GENIUS_API_KEY,
|
||||
soundCloud_api_key: process.env.SOUNDCLOUD_API_KEY,
|
||||
spotify_access_key: process.env.SPOTIFY_ACCESS_KEY,
|
||||
spotify_client_secret: process.env.SPOTIFY_CLIENT_SECRET,
|
||||
spotify_client_id: process.env.SPOTIFY_CLIENT_ID,
|
||||
port: 8888,
|
||||
redirectUri: "http://localhost:8888/callback/",
|
||||
testServer: "489111553321336832",
|
||||
primary_test_channel: "617633098296721409",
|
||||
secondary_test_channel: "570531724002328577",
|
||||
devId: "360363051792203779",
|
||||
embedColor: "#b50002",
|
||||
invite: "https://discordapp.com/oauth2/authorize?client_id=607266889537945605&permissions=3427328&scope=bot",
|
||||
supportServer: "https://discord.gg/rvHuJtB",
|
||||
devMode: false,
|
||||
api: false,
|
||||
saveDB: true,
|
||||
respawn: true,
|
||||
shards: 10,
|
||||
shardDelay: 10000,
|
||||
spawnTimeout: 60000,
|
||||
respawnDelay: 1000,
|
||||
prefix: ">",
|
||||
devPrefix: "-",
|
||||
defaultVolume: 5,
|
||||
permissions: false,
|
||||
dj: false,
|
||||
djrole: null,
|
||||
startPlaying: true,
|
||||
bass: 1,
|
||||
};
|
Reference in New Issue
Block a user