【发布时间】:2018-12-13 07:45:36
【问题描述】:
我有一个 smol Discord 机器人(使用 discord.js-commando),我有这个代码:
var activevar = ["with the &help command.", "with the developers console", "with some code", "with JavaScript"];
var activities = activevar[Math.floor(Math.random()*activevar.length)];
client.on('ready', () => {
client.user.setActivity(activities);
}
但这只会在我重新启动机器人时改变。有人可以帮我吗?
【问题讨论】:
标签: discord discord.js