Skip to content

A bot that can play rock-paper-scissors with Yodogawa-san.

License

Notifications You must be signed in to change notification settings

n0nakamura/yodogawa-janken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yodogawa-Janken

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:

Table 1. The occurrence probabilities of yodogawa-janken’s hands
Hands Occurrence probabilities [%]

✊ Rock

26

✌ Scissors

32

🖐 Paper

37

👉 Invincible

5

Used and referenced resources

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.

About

A bot that can play rock-paper-scissors with Yodogawa-san.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages