1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00
This commit is contained in:
MatteZ02
2020-04-21 14:29:36 +03:00
parent 32c476a3f6
commit 3532cc00d3
8 changed files with 8 additions and 37 deletions

View File

@ -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",

View File

@ -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);
},
};
};

View File

@ -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);
},
};
};

View File

@ -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;

View 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,
};