fixing some whitespacing, and fixing the member count code
This commit is contained in:
		
							
								
								
									
										8
									
								
								bot.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								bot.js
									
									
									
									
									
								
							| @@ -35,15 +35,17 @@ client.connect({ | |||||||
| client.Dispatcher.on(Events.GATEWAY_READY, e => { | 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() { | setInterval(function() { | ||||||
|   client.Users.fetchMembers(config.guild_id); |   client.Users.fetchMembers(config.guild_id); | ||||||
|       actcon.info(config.guild_name + " Active Users: " + client.Users.onlineMembersForGuild(config.guild_id).length);}, 30000) |   actcon.info(config.guild_name + " Active Users: " + client.Users.onlineMembersForGuild(config.guild_id).length);}, 30000); | ||||||
| }); |  | ||||||
|  |  | ||||||
|   // when messages are created |   // when messages are created | ||||||
|   client.Dispatcher.on(Events.MESSAGE_CREATE, e => { |   client.Dispatcher.on(Events.MESSAGE_CREATE, e => { | ||||||
|   // log the guild name, the channel name, the username, and the message to the channels log |     // log the guild name, the channel name, the username, and the message to the channels log and disable DMs. | ||||||
|  |     if (!e.message.isPrivate) | ||||||
|     chancon.info(e.message.guild.name + ":" + " #" + e.message.channel.name + ": " + "<" + e.message.displayUsername + ">: "+ e.message.content); |     chancon.info(e.message.guild.name + ":" + " #" + e.message.channel.name + ": " + "<" + e.message.displayUsername + ">: "+ e.message.content); | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user