mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
fixed apikey
This commit is contained in:
parent
2d8143cea5
commit
176960fa24
@ -10,7 +10,7 @@ module.exports = {
|
|||||||
cooldown: 3,
|
cooldown: 3,
|
||||||
onlyDev: false,
|
onlyDev: false,
|
||||||
async execute(message, args, client, Discord, prefix) {
|
async execute(message, args, client, Discord, prefix) {
|
||||||
const youtube = new YouTube(client.config.apikey);
|
const youtube = new YouTube(client.config.api_key);
|
||||||
const searchString = args.slice(1).join(" ");
|
const searchString = args.slice(1).join(" ");
|
||||||
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
|
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
|
||||||
const serverQueue = client.queue.get(message.guild.id);
|
const serverQueue = client.queue.get(message.guild.id);
|
||||||
|
2
index.js
2
index.js
@ -27,7 +27,6 @@ client.commandAliases = new Discord.Collection();
|
|||||||
client.playlistCmd = new Discord.Collection();
|
client.playlistCmd = new Discord.Collection();
|
||||||
client.settingCmd = new Discord.Collection();
|
client.settingCmd = new Discord.Collection();
|
||||||
client.events = new Discord.Collection();
|
client.events = new Discord.Collection();
|
||||||
client.cooldowns = new Discord.Collection();
|
|
||||||
client.queue = new Map();
|
client.queue = new Map();
|
||||||
client.funcs = {};
|
client.funcs = {};
|
||||||
|
|
||||||
@ -45,6 +44,7 @@ for (const file of commandFiles) {
|
|||||||
client.commands.set(command.name, command);
|
client.commands.set(command.name, command);
|
||||||
client.commandAliases.set(command.alias, command);
|
client.commandAliases.set(command.alias, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventFiles = fs.readdirSync('./events/').filter(f => f.endsWith('.js'));
|
const eventFiles = fs.readdirSync('./events/').filter(f => f.endsWith('.js'));
|
||||||
for (const file of eventFiles) {
|
for (const file of eventFiles) {
|
||||||
const event = require(`./events/${file}`);
|
const event = require(`./events/${file}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user