configs and defaults
This commit is contained in:
		
							parent
							
								
									f7d9afbd43
								
							
						
					
					
						commit
						abe38388b6
					
				
					 7 changed files with 17 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								pgbot
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								pgbot
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -15,7 +15,7 @@ import pgbotlib.response
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
def init(args: list) -> tuple:
 | 
			
		||||
    conf_path = args[0] if args else 'config.yml'
 | 
			
		||||
    conf_path = args[0] if args else pgbotlib.misc.Paths.CONFIG
 | 
			
		||||
    try:
 | 
			
		||||
        with open(conf_path, 'r', encoding='utf-8') as data:
 | 
			
		||||
            config = yaml.safe_load(data.read())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue