我如何制作一个 "host events" 和 Discord.js 的机器人?

How would I make a bot that "host events" with Discord.js?

我需要一种方法来托管 "events" 和 Discord.js。

我找到的最接近的是 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:")
}