forked from embee/woomy
		
	More comments and also comment stuff out
This commit is contained in:
		
							parent
							
								
									9a71454ec5
								
							
						
					
					
						commit
						d722add09b
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		
							
								
								
									
										11
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								index.js
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -26,11 +26,16 @@ require('dotenv').config()
 | 
			
		|||
const Discord = require('discord.js')
 | 
			
		||||
const client = new Discord.Client({ disabledEvents: ['TYPING_START'] })
 | 
			
		||||
 | 
			
		||||
client.commands = new Discord.Collection()
 | 
			
		||||
client.aliases = new Discord.Collection()
 | 
			
		||||
//client.commands = new Discord.Collection()
 | 
			
		||||
//client.aliases = new Discord.Collection()
 | 
			
		||||
 | 
			
		||||
// Command cache containing every prefix + command combination without arguments ( ~ping )
 | 
			
		||||
client.commandCache = {};
 | 
			
		||||
 | 
			
		||||
// Initialization function
 | 
			
		||||
const init = async () => {
 | 
			
		||||
  // Load modules
 | 
			
		||||
 | 
			
		||||
  // Register events
 | 
			
		||||
  fs.readdir('./events', (err, files) => {
 | 
			
		||||
    files.forEach(file => {
 | 
			
		||||
| 
						 | 
				
			
			@ -38,6 +43,8 @@ const init = async () => {
 | 
			
		|||
    });
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  // Load commands
 | 
			
		||||
 | 
			
		||||
  // Login into Discord
 | 
			
		||||
  client.login(process.env.TOKEN);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue