mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 10:46:14 +10:00
changed over = to :, whoops
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user