The goal is to implement OTP compatible flow for Google Authenticator and OpenOTP.
This is working including the qrcode exchange.
!repos install https://github.com/gbin/err-otp.git
Flag a command to require an OTP (as an admin):
!otp_addcmd [command_name] # to protect a command by OTP
Send a secret to a user: This will send a qrcode to someone so they can scan it with their freeOTP app or google authenticator.
!otp_secret [somebody]
Then when this somebody tries the command, the bot will block it, ask for an OTP and once it is entered by the somebody it should unlock and execute it.