VRChat にスパチャが過去1秒間に発生したかをOSCメッセージで毎秒送信するブックマークレット (VRChat OSC Bridge 専用ツール)
VRChat OSC Bridge が起動している状態で、 YouTube Live のコメント欄をポップアウトし、そのウィンドウに対して spc_to_osc.min.js
の javascript:
以降のコードを入力します。
実行すると、 所定のOSCメッセージが毎秒 /VRC_OSC/SPC
に送信されます。
const WebSocket = require("ws"); | |
const MISSKEYIO_APIKEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
const MASTODON_APIKEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
const MASTODON_DOMAIN = "https://mastodon.example.com"; | |
async function push(postUrl) { | |
const params = { | |
q: postUrl, | |
type: "statuses", |
# Created by https://www.gitignore.io/api/node,visualstudiocode | |
# Edit at https://www.gitignore.io/?templates=node,visualstudiocode | |
### Node ### | |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* |
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"github.com/go-redis/redis" | |
) |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"strings" | |
"time" | |
"github.com/go-redis/redis" |
VRChat にスパチャが過去1秒間に発生したかをOSCメッセージで毎秒送信するブックマークレット (VRChat OSC Bridge 専用ツール)
VRChat OSC Bridge が起動している状態で、 YouTube Live のコメント欄をポップアウトし、そのウィンドウに対して spc_to_osc.min.js
の javascript:
以降のコードを入力します。
実行すると、 所定のOSCメッセージが毎秒 /VRC_OSC/SPC
に送信されます。
I hereby claim:
To claim this, I am signing this object:
https://yourdomain.example.com/ { | |
log / /var/log/caddy/mastodon.log "{combined}" { | |
rotate_age 90 | |
} | |
root /home/mastodon/live/public | |
gzip | |
header / { | |
Strict-Transport-Security "max-age=31536000" | |
} |