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

remove setkey

This commit is contained in:
MatteZ02
2020-04-21 22:19:40 +03:00
parent 32ae8cbb6e
commit e829eeaf8f
5 changed files with 72 additions and 98 deletions

View File

@ -1,17 +1,7 @@
module.exports = {
name: "message",
async execute(client, msg, Discord) {
if (msg.author.bot) return;
if (!msg.guild && msg.content.startsWith("setkey")) {
const args = msg.content.split(" ");
if (!args[1] || !args[2])
return msg.channel.send(client.messages.setKeyUsage);
client.config.db.collection("guilds").doc(args[2]).set({
key: args[1],
});
return msg.channel.send(client.messages.keySet);
}
if (!msg.guild) return;
if (msg.author.bot || !msg.guild) return;
if (!client.global.db.guilds[msg.guild.id]) return;
let prefix = client.global.db.guilds[msg.guild.id].prefix;
const args = msg.content.slice(prefix.length).split(" ");