Adding a fetch members in the sleep, since it appears to hang
This commit is contained in:
parent
bcc41b8e0f
commit
c045b3398e
4
bot.js
4
bot.js
@ -35,7 +35,9 @@ client.Dispatcher.on(Events.GATEWAY_READY, e => {
|
|||||||
// acknoledge connection to console logs
|
// acknoledge connection to console logs
|
||||||
logcon.info('Connected as: ' + client.User.username);
|
logcon.info('Connected as: ' + client.User.username);
|
||||||
// check for the number of active users every 30 seconds and log to the active users logs
|
// check for the number of active users every 30 seconds and log to the active users logs
|
||||||
setInterval(function() {actcon.info(config.guild_name + " Active Users: " + client.Users.onlineMembersForGuild(config.guild_id).length);}, 30000)
|
setInterval(function() {
|
||||||
|
client.Users.fetchMembers(config.guild_id);
|
||||||
|
actcon.info(config.guild_name + " Active Users: " + client.Users.onlineMembersForGuild(config.guild_id).length);}, 30000)
|
||||||
});
|
});
|
||||||
|
|
||||||
// when messages are created
|
// when messages are created
|
||||||
|
Loading…
Reference in New Issue
Block a user