add a default redeems file
This commit is contained in:
		
							parent
							
								
									bf49aa16cd
								
							
						
					
					
						commit
						a62c718aa1
					
				@ -15,11 +15,12 @@ def create_app(test_config=None):
 | 
				
			|||||||
        pass
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Prepare config: set db to instance folder, then load default, then
 | 
					    # Prepare config: set db to instance folder, then load default, then
 | 
				
			||||||
    # overwrite it with config.py
 | 
					    # overwrite it with config.py and redeems.py
 | 
				
			||||||
    app.config.from_mapping(
 | 
					    app.config.from_mapping(
 | 
				
			||||||
        DATABASE=os.path.join(app.instance_path, "tlapbot.sqlite")
 | 
					        DATABASE=os.path.join(app.instance_path, "tlapbot.sqlite")
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    app.config.from_object('tlapbot.default_config')
 | 
					    app.config.from_object('tlapbot.default_config')
 | 
				
			||||||
 | 
					    app.config.from_object('tlapbot.default_redeems')
 | 
				
			||||||
    app.config.from_pyfile('config.py')
 | 
					    app.config.from_pyfile('config.py')
 | 
				
			||||||
    app.config.from_pyfile('redeems.py')
 | 
					    app.config.from_pyfile('redeems.py')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								tlapbot/default_redeems.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								tlapbot/default_redeems.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					REDEEMS={
 | 
				
			||||||
 | 
					    "hydrate": {"price": 60, "type": "list"},
 | 
				
			||||||
 | 
					    "lurk": {"price:": 1, "type": "counter"},
 | 
				
			||||||
 | 
					    "react": {"price:": 200, "type": "note"},
 | 
				
			||||||
 | 
					    "request": {"price:": 100, "type": "note"}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user