【发布时间】:2020-03-24 05:01:20
【问题描述】:
我正在创建一个蒸汽命令,其中参数是 id 或配置文件链接 我想要做的是得到最后一句话
前
https://steamcommunity.com/id/ethicalhackeryt/ 在这里我想得到ethicalhackeryt 或者如果用户直接输入继续
喜欢.steam https://steamcommunity.com/id/ethicalhackeryt/
或.steam ethicalhackeryt
将 args[0] 保存为 ethicalhackeryt
run: async (client, message, args) => {
if(args[0] == `http://steamcommunity.com/id/`) args[0].slice(29); //needed help in this line
const token = steamapi
if(!args[0]) return message.channel.send("Please provide an account name!");
const url ....... rest of code
}
【问题讨论】:
标签: javascript node.js discord.js