const Discord = require('discord.js')
const client = new Discord.Client()
const { prefix, token, giphyToken } = require('./config.json')
client.on('ready', () => {
command(client, 'kick', message => {
if (message.member.hasPermission(['KICK_MEMBER', 'BAN_MEMBERS'])) {
if (message.content.startsWith(`${prefix}kick`)) {
let member = message.mentions.members.first()
member.kick().then((member) => {
client.giphy.search('gifs', { q: 'fail' }).then((response) => {
var totalResponses = response.data.length;
var responseIndex = Math.floor(Math.random() * 10 + 1) % totalResponses
var responseFinal = response.data[responseIndex]
message.channel.send(':wave: ' + member.displayName + ' был кикнут!',{
files: [responseFinal.images.fixed_height.url]
}
)
})
})
}
}
})
client.login(token)
Консоль выводит, что Unexpected end of input (client.login(token))
Не замечаю ошибку, подскажите пожалуйста.