A bot that can play rock-paper-scissors with Yodogawa-san.
If you mention R
or ✊
for rock, S
or ✌
for scissors, or P
or 🖐
for paper to yodogawa-janken, it will reply with the hand of yodogawa-janken and the result of the match. The occurrence probabilities of yodogawa-janken’s hands are as follows:
Hands | Occurrence probabilities [%] |
---|---|
✊ Rock |
26 |
✌ Scissors |
32 |
🖐 Paper |
37 |
👉 Invincible |
5 |
The following resources were used or referenced during the creation of this program.
Yodogawa-Janken is created using go-nostr (nbd-wtf/go-nostr: Nostr library for Golang) library. go-nostr is provided under the MIT license.
The implementation of the relay functionality was inspired by Mr. matsuu’s namazu (matsuu/namazu: 緊急地震速報(予報)を受け取ってSNSに投げるプログラム一式), which is provided under the MIT license.
Most of the processing in the postReply
function in main.go
mimics Mr. mattn’s makeitquote (mattn/nostr-makeitquote). makeitquote is available under the MIT license.
I would like to express my gratitude here as Yodogawa-Janken could not have been created without these programs.