【发布时间】:2020-01-10 18:41:05
【问题描述】:
我对 Java 脚本编码非常陌生。我正在尝试制作一个机器人来将卡片添加到我的 trello 中,我在互联网上花费了无数个小时,但我没有找到它。
if(isCommand('gameban', message)){
if(!message.member.roles.some(r=>["Admin"].includes(r.name)) )
return message.reply("You can't use this command.");
var username = args[1]
if (username){
message.channel.send(`Checking ROBLOX for ${username}`)
roblox.getIdFromUsername(username)
.then(function(id){
var bandata = (`${username}:${id}`)
//this is where the code needs to go for trello. The card name should be is "bandata"
}).catch(function(err){
message.channel.send(`Sorry, but ${username} doesn't exist on ROBLOX.`)
});
return;
}}
董事会:https://trello.com/b/KcRBCOQQ/secondary-board
我希望卡片进入标有“禁令”的列表
【问题讨论】:
标签: javascript node.js discord discord.js trello