add scpt notify
This commit is contained in:
		
							
								
								
									
										15
									
								
								scpt/env
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								scpt/env
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
cfg=~/.config/ai/test.json
 | 
			
		||||
host=`cat $cfg|jq -r .host`
 | 
			
		||||
handle=`cat $cfg|jq -r .handle`
 | 
			
		||||
pass=`cat $cfg|jq -r .password`
 | 
			
		||||
date=`date --iso-8601=seconds`
 | 
			
		||||
 | 
			
		||||
if [ ! -f $cfg.t ];then
 | 
			
		||||
	$d/token.zsh
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -f $cfg.t ];then
 | 
			
		||||
	token=`cat $cfg.t|jq -r .accessJwt`
 | 
			
		||||
	refresh=`cat $cfg.t|jq -r .refreshJwt`
 | 
			
		||||
	did=`cat $cfg.t|jq -r .did`
 | 
			
		||||
fi
 | 
			
		||||
		Reference in New Issue
	
	Block a user