mirror of
				https://github.com/musix-org/musix-oss
				synced 2025-10-31 05:21:34 +00:00 
			
		
		
		
	fixed apikey
This commit is contained in:
		| @@ -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}`); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MatteZ02
					MatteZ02