add standby state detection
This commit is contained in:
		
							parent
							
								
									2bac54108e
								
							
						
					
					
						commit
						447091f172
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -38,13 +38,20 @@ Be sensitive to changes and update the state. | ||||||
|             // TODO
 |             // TODO
 | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         static standby() { | ||||||
|  |           /* Set the program to standby utnil next load. | ||||||
|  |           */ | ||||||
|  | 
 | ||||||
|  |           console.log("ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself."); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         static job() { |         static job() { | ||||||
|           /* The main action. */ |           /* The main action. */ | ||||||
|           let job_task = watchman.observe(); |           let job_task = watchman.observe(); | ||||||
|           if (job_task) { |           if (job_task) { | ||||||
|             watchman.act(job_task); |             watchman.act(job_task); | ||||||
|           } else { |           } else { | ||||||
|             console.log("ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself."); |             watchman.standby(); | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue