Error
/home/runner/Funko-Bot/index.js:26
Client.login(process.env.T0KEN)
SyntaxError: Unexpected end of input
Code
const Discord = require("discord.js")
const fetch = require("node-fetch")
const client = new Discord.Client()
function Funkounter() {
return fetch("https://github.com/kennymkchan/funko-pop-data.git/random")
.then(res => {
return res.json()
})
.then(data => {
return [0] ["q"] + " -" + data[0] ["a"]
})
client.on("ready", () => {
console.log(`logged in as $
{client.user.tag}!`)
})
client.on("message", msg => {
if (msg.author.bot) return
if (msg.content === "fb!spawn"){
Funkounter().then(quote => msg.channel.send(quote))
}
})
client.login(process.env.T0KEN)