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"
8
8
[dependencies ]
9
9
powershell_script = " 1.1.0"
10
10
rand = " 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 {
880
880
// 一定時間スリープ
881
881
"sleep" => sleep ( Duration :: from_secs_f64 ( self . pop_stack ( ) . get_number ( ) ) ) ,
882
882
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
+
883
893
// コマンドとして認識されない場合は文字列とする
884
894
_ => self . stack . push ( Type :: String ( command) ) ,
885
895
}
You can’t perform that action at this time.
0 commit comments