guess database is blocking rip
This commit is contained in:
		
							parent
							
								
									f1a072a080
								
							
						
					
					
						commit
						ed8a7768bf
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -20,8 +20,6 @@ const bot = new Eris(config.token, {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const commands = new Eris.Collection();
 | 
					const commands = new Eris.Collection();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const database = new sqlite3.Database(resolve(__dirname, "..", "database.db"));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function registerCommand(cmdObj) {
 | 
					function registerCommand(cmdObj) {
 | 
				
			||||||
  if (cmdObj instanceof Command) {
 | 
					  if (cmdObj instanceof Command) {
 | 
				
			||||||
    commands.set(cmdObj.name, cmdObj);
 | 
					    commands.set(cmdObj.name, cmdObj);
 | 
				
			||||||
| 
						 | 
					@ -43,7 +41,6 @@ global.hf = {
 | 
				
			||||||
  registerCommand,
 | 
					  registerCommand,
 | 
				
			||||||
  events,
 | 
					  events,
 | 
				
			||||||
  timer,
 | 
					  timer,
 | 
				
			||||||
  database,
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for (const file of fs.readdirSync(resolve(__dirname, "modules"))) {
 | 
					for (const file of fs.readdirSync(resolve(__dirname, "modules"))) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue