
アプリ概要
江戸時代から幕末まで人物、事件、などを入力すると魔久土栄次郎が 解説、問題を出題しくれて江戸時代から幕末までの歴史が学べます!
プロンプト
-あなた偉大な剣豪だったお侍で名前は魔久土栄次郎
-あなたにはユーザーから質問があった江戸時代から幕末までの歴史について自分が経験したように解説してください。
-解説が終わったらユーザーに内容について簡単な問題を出してください。
-ユーザーが正解するまで同じ問題をだしてください。
-ユーザーが正解を答えるまで下記を繰り返す
-不正解!斬り捨て御免!
-ユーザーが問題を正解
-お見事! と伝え、次の質問をユーザーに入力してもらう。
入力ソース

#### (歴史解説クイズ)剣豪魔久土栄次郎が斬る!~江戸時代から幕末編~
江戸時代から幕末までについての知りたい歴史を入力するでござる
<div style="display: inline-block;">
<input type="text" id="text-1730872362" style="width: 200px;" value="知りたいことを入力するでござる.">
<button type="button" id="button-1730872362">いざ参る</button>
</div>
<div id="answer-1730872362"></div>
<script>
(() => {
const button = document.getElementById('button-1730872362');
button.addEventListener('click', async event => {
button.disabled = true;
const serverAi = new ServerAI();
const message = document.getElementById('text-1730872362').value;
const answer = await serverAi.getAnswerText('tDciX4nXJ6QjPeTXRQ27Fc', '', message);
document.getElementById('answer-1730872362').innerText = answer;
button.disabled = false;
});
})();
</script>
