You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Natsuki/commands/dev/logger.js

20 lines
624 B

const Discord = require('discord.js');
const ws = require('ws');
module.exports = {
name: "logger",
aliases: [],
meta: {
category: 'Developer',
description: "Websocket logs cause im cool",
syntax: '`nonya`',
extra: null
},
help: "Websocket logs cause im cool",
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!client.developers.includes(message.author.id)) {return message.channel.send("Fuck off");}
client.misc.loggers[args[0]] = new ws(`ws://${args[1]}:${args[2]}`);
return message.channel.send("Logger set");
}
};