fuck you give me all the intents
This commit is contained in:
		
							parent
							
								
									ed8a7768bf
								
							
						
					
					
						commit
						6ba2f696ac
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -15,11 +15,15 @@ const timer = require("./lib/timer.js");
 | 
				
			||||||
const bot = new Eris(config.token, {
 | 
					const bot = new Eris(config.token, {
 | 
				
			||||||
  defaultImageFormat: "png",
 | 
					  defaultImageFormat: "png",
 | 
				
			||||||
  defaultImageSize: 1024,
 | 
					  defaultImageSize: 1024,
 | 
				
			||||||
  intents: [],
 | 
					  intents: Object.keys(Eris.Constants.Intents).filter(
 | 
				
			||||||
 | 
					    (x) => x != "guildMembers" && x != "guildPresences"
 | 
				
			||||||
 | 
					  ),
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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);
 | 
				
			||||||
| 
						 | 
					@ -41,6 +45,7 @@ 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