<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script src="https://l2dwidget.js.org/lib/L2Dwidget.min.js"></script>
<script>
L2Dwidget.on('*', name => {
console.log(name);
}).init({
dialog: {
enable: true, // 是否對話
script: {
'every idle 10s': '$hitokoto$', // 自動對話
'tap body': '摸身體',
'tap face': '摸頭'
}
}
});
</script>
</body>
</html>
- 文獻
https://github.com/EYHN/hexo-helper-live2d/blob/master/README.zh-CN.md
https://www.jsdelivr.com/package/npm/live2d-widget-model-wanko