* Update validate-connection.ts

* Update index.ts

* Update package.json

* Update example.ts

* Update package.json

---------

Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Kizuno18
2024-04-28 08:10:34 -03:00
committed by GitHub
parent 8c61f6719f
commit 3ce0ccb3d8
2 changed files with 2 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ const startSock = async() => {
async function askForOTP() {
if (!registration.method) {
await delay(2000)
let code = await question('How would you like to receive the one time code for registration? "sms" or "voice"\n')
code = code.replace(/["']/g, '').trim().toLowerCase()
if(code !== 'sms' && code !== 'voice') {