[英]How would I make a bot that "host events" with Discord.js?
I figured out how to do this.我想出了如何做到这一点。
if(command === 'mnhost') {
var movie = args.join(" ");
let MNP = message.guild.roles.find(role => role.name === "Movie Night Pings");
if (!movie) return message.reply('Please specify the movie you are hosting! (Ex. `~mnhost <Movie Title>`)')
message.channel.send(":partying_face: Are you ready for some movies?:partying_face:")
message.channel.send(MNP + " :movie_camera: " + message.author + " is hosting __**" + movie + "**__!!! :movie_camera:")
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.