我正在尝试添加twerk命令,现在出现错误,所以我想知道原因。
我真的还没有尝试过任何东西,因为我不想把其他东西搞砸了。
const Discord = require("discord.js");
module.exports.run = async (bot, message, args) => {
// The error is on the following line
let twerks = ["https://giphy.com/gifs/booty-twerk-spongebob-squarepants-DqhwoR9RHm3EA", "https://cdn.discordapp.com/attachments/552601880329584640/604477222035783728/IMG_20190726_205622_01.gif", "https://giphy.com/gifs/hilarious-twerking-im-sorry-9rU2rP52gAJEY", "https://media.discordapp.net/attachments/552601880329584640/604499916718473216/IMG_20190726_222627_01.gif", "https://images-ext-1.discordapp.net/external/m7XgjNJJfliug7oiwO5DnxDeHGsw6B4r5QQlwLJnbdo/https/media.tenor.com/images/4bfa605e987893b15bcf98248522a3db/tenor.gif"];
let result = Math.floor((Math.random() * twerks.length))
message.channel.send(twerks[result])
}
module.exports.help = {
name: "twerk"
}