Javascript 我如何制作一个“机器人”呢;主办活动;用Discord.js?

Javascript 我如何制作一个“机器人”呢;主办活动;用Discord.js?,javascript,node.js,bots,discord.js,pm2,Javascript,Node.js,Bots,Discord.js,Pm2,我需要一种用Discord.js主持“活动”的方法 我找到的最接近的是 这正是我需要它做的,但这并没有显示任何要尝试和复制的代码 有什么建议吗?我知道怎么做了 if(command === 'mnhost') { var movie = args.join(" "); let MNP = message.guild.roles.find(role => role.name === "Movie Night Pings"); if (!movie) return message.repl

我需要一种用Discord.js主持“活动”的方法

我找到的最接近的是

这正是我需要它做的,但这并没有显示任何要尝试和复制的代码


有什么建议吗?

我知道怎么做了

  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:")
}
if(命令=='mnhost'){
var movie=args.join(“”);
让MNP=message.guild.roles.find(role=>role.name==“电影之夜Pings”);
if(!movie)返回message.reply('请指定您正在托管的电影!(例如`mnhost`'))
message.channel.send(“:partying\u face:你准备好看电影了吗?:partying\u face:”)
message.channel.send(MNP+“:movie\u-camera:“+message.author+”正在托管_**”+movie+“**\u!!!:movie\u-camera:”)
}

我看不出这是个什么问题?你要什么?你想要有人为你写一个完整的机器人吗?请澄清你的问题。一般规则是描述上下文、描述问题、描述您尝试过的内容,不要忘记包括代码片段、日志、资源链接等。。。谢谢你,我知道了。很抱歉给你带来了困惑。