it's a presentable stub now!
This commit is contained in:
		
							
								
								
									
										8
									
								
								app/pylocal/tick.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								app/pylocal/tick.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
import json
 | 
			
		||||
import random
 | 
			
		||||
 | 
			
		||||
from . import core
 | 
			
		||||
 | 
			
		||||
@core.app.route("/tick")
 | 
			
		||||
def tick():
 | 
			
		||||
    return random.choices([json.dumps({"code": 200, "event_type": 0}), json.dumps({"code": 200, "event_type": 1, "log": "The server chose a flavor text event, which hasn't been fully implemented yet."})], weights=[16, 1])[0]
 | 
			
		||||
		Reference in New Issue
	
	Block a user