File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ edition = "2021"
88[dependencies ]
99powershell_script = " 1.1.0"
1010rand = " 0.8"
11+ reqwest = { version = " 0.11.0" , features = [" blocking" ] }
Original file line number Diff line number Diff line change 1+ (https://api.tts.quest/v3/voicevox/synthesis?text=)
2+ (文章を入力してください> ) input concat request
3+ (,) split 5 get (":") split 1 get (\) () replace
4+ (") () replace print
Original file line number Diff line number Diff line change @@ -880,6 +880,16 @@ impl Executor {
880880 // 一定時間スリープ
881881 "sleep" => sleep ( Duration :: from_secs_f64 ( self . pop_stack ( ) . get_number ( ) ) ) ,
882882
883+ // Web系処理
884+
885+ //HTTPリクエストを送る
886+ "request" => {
887+ let url = self . pop_stack ( ) . get_string ( ) ;
888+ self . stack . push ( Type :: String (
889+ reqwest:: blocking:: get ( url) . unwrap ( ) . text ( ) . unwrap ( ) ,
890+ ) ) ;
891+ }
892+
883893 // コマンドとして認識されない場合は文字列とする
884894 _ => self . stack . push ( Type :: String ( command) ) ,
885895 }
You can’t perform that action at this time.
0 commit comments