cleaned up anagram.js, combined module exports.

This commit is contained in:
2019-03-18 06:23:27 +11:00
parent 7d11f13e30
commit 467dc136ff
22 changed files with 513 additions and 496 deletions

View File

@@ -1,16 +1,18 @@
exports.name = 'Move all'
exports.alias = ['moveall']
exports.helptext = 'Moves all people from one Voice Chat, to the next'
exports.helphide = false
exports.permissions = ['MOVE_MEMBERS']
exports.args = ['ChannelID', 'ChannelID']
exports.category = 'admin'
exports.command = (client, msg) => {
cleaner = msg.cleanContent.replace(/\s\s+/g, ' ');
chans = cleaner.split(' ');
console.log("From: " + chans[1]);
msg.guild.channels.get(chans[1]).members.forEach(m => {
m.setVoiceChannel(chans[2]);
});
module.exports = {
name = 'Move all',
alias =['moveall'],
helptext = 'Moves all people from one Voice Chat, to the next',
helphide = false,
permissions =['MOVE_MEMBERS'],
args =['ChannelID', 'ChannelID'],
category = 'admin',
command = (client, msg) => {
cleaner = msg.cleanContent.replace(/\s\s+/g, ' ');
chans = cleaner.split(' ');
console.log("From: " + chans[1]);
msg.guild.channels.get(chans[1]).members.forEach(m => {
m.setVoiceChannel(chans[2]);
});
}
}