status: use custom status now that bots can use state
This commit is contained in:
		
							parent
							
								
									932d24d6a4
								
							
						
					
					
						commit
						ffa23ed68f
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
const statuses = [
 | 
			
		||||
/*const statuses = [
 | 
			
		||||
  {type: 0, text: "on %servers% servers"},
 | 
			
		||||
  {type: 0, text: "with %users% users"},
 | 
			
		||||
  {type: 0, text: "with %commands% commands"},
 | 
			
		||||
| 
						 | 
				
			
			@ -17,7 +17,17 @@ function setStatus() {
 | 
			
		|||
      name: `${text} | ${hf.config.prefix}help`,
 | 
			
		||||
    },
 | 
			
		||||
  ]);
 | 
			
		||||
}*/
 | 
			
		||||
 | 
			
		||||
function setStatus() {
 | 
			
		||||
  hf.bot.editStatus("online", [
 | 
			
		||||
    {
 | 
			
		||||
      type: 4,
 | 
			
		||||
      name: "HiddenPhox",
 | 
			
		||||
      state: `${hf.config.prefix}help`,
 | 
			
		||||
    },
 | 
			
		||||
  ]);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
hf.bot.once("ready", setStatus);
 | 
			
		||||
hf.timer.add("status", setStatus, 300000);
 | 
			
		||||
//hf.timer.add("status", setStatus, 300000);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue