changed over = to :, whoops

This commit is contained in:
2019-03-18 06:38:40 +11:00
parent 467dc136ff
commit f4601a7974
25 changed files with 194 additions and 190 deletions

View File

@@ -1,12 +1,12 @@
module.exports = {
name = 'Slap',
alias =['slap'],
helptext = 'Slaps users to empty channels and back again',
helphide = false,
permissions =['MOVE_MEMBERS'],
args =['@Tag'],
category = 'admin',
command = (client, msg) => {
name: 'Slap',
alias: ['slap'],
helptext: 'Slaps users to empty channels and back again',
helphide: false,
permissions: ['MOVE_MEMBERS'],
args: ['@Tag'],
category: 'admin',
command: (client, msg) => {
client.database.get_setting("autoVoice", msg.guild.id).then((autochan) => {
var itemsProcessed = 0
var cid = msg.mentions.members.first().voiceChannelID
@@ -15,7 +15,7 @@ module.exports = {
if (itemsProcessed <= 8) {
if (element.id != autochan) {
if (element.members.array().length == 0)
msg.mentions.members.first().setVoiceChannel(element.id)
msg.mentions.members.first().setVoiceChannel(element.id)
}
if (itemsProcessed >= msg.guild.channels.filter(c => value.type == "voice").array().length || itemsProcessed >= 8) {
msg.mentions.members.first().setVoiceChannel(cid)