1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00

new event handling

This commit is contained in:
MatteZ02
2020-03-19 16:45:05 +02:00
parent 2ca0306928
commit 16a5e4ea6d
13 changed files with 78 additions and 46 deletions

View File

@ -42,6 +42,14 @@ module.exports = {
var video = await youtube.getVideoByID(videos[0].id);
} catch (err) {
console.error(err);
if (err.code === 403) {
if (client.config.api_key === client.config.api_key2) {
client.config.api_key = client.config.api_key3;
} else {
client.config.api_key = client.config.api_key2;
}
return msg.channel.send(client.messages.quotaReached);
}
return msg.channel.send(client.messages.noResults);
}
}

13
commands/savedb.js Normal file
View File

@ -0,0 +1,13 @@
module.exports = {
name: 'savedb',
alias: 'save',
usage: '',
description: 'save the database',
onlyDev: true,
permission: 'dev',
category: 'util',
async execute(msg, args, client, Discord, prefix, command) {
client.funcs.saveDB(client);
msg.channel.send(client.messages.dbSaved);
}
};