📜  常量 args = message.content.slice(config.prefix.length).trim().split(+g); - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:01.378000             🧑  作者: Mango

代码示例1
if (command === "asl") {
  let age = args[0]; // Remember arrays are 0-based!.
  let sex = args[1];
  let location = args[2];
  message.reply(`Hello ${message.author.username}, I see you're a ${age} year old ${sex} from ${location}. Wanna date?`);
}