3 subscribers
88 photos
9 videos
61 files
64 links
Test
Download Telegram
How To Setup This OTP BOT❓
Requirements:-

~Cloud Portal
~Twillio Account
~Node.js and NPM
~Discord Account
Login to your cloud portal (for this tutorial I am using azure)
Now Configure your Vm/Instance Settings:

~ VPS Location can be nearest to your location to be faster, although I recommend US.
~Server OS Can be Linux/Windows (In this tutorial I am using Ubuntu Server 20.04 LTS).
~2vcpu + 4gb size is enough for this bot.
~In authentication choose what suits you more SSH Key/Password
~You can choose default setting in Disks,Networking,Management,Advanced,Tags.

Now just create/deploy your VM/Instance
Now add a new firewall rule
Now Configure these:

1. Destination Should be "Any"/"All".
2. In Service choose custom.
3. In Destination Port Ranges or Port input 1337(Because we need to open this port in firewall).
4. In protocol choose "Any" or TCP/UDP.
5. In name input whatever you want.

And finally click add or save.
Now open Command Prompt in Windows or Terminal in Linux/Mac.
Now connecting to your VPS via Windows/Linux/Mac:-

If Using Username and Password:-

~use the syntax ssh username@ip-address

If Using SSH Key:-

~use the syntax ssh -i key.pem username@ip-address
And Finally check your bot on discord

Note: I did not had the twillio key and discord so the ss used to explain the twillio dashboard and discord are not mine. But VPS and bot setup ss is mine.
Install unzip via
apt install unzip
Use clear command to clean your terminal or cmd
Now run this command in the same directory where you downloaded the zip file.

unzip OTP-BOT\[Join\ \@hackers_assemble\].zip

This will extarct the folders inside the zip file
Now input yes.
Now Change your directory to the exracted folder.

Using this command:-

cd OTP-BOT\[Join\ \@hackers_assemble\]

and you can use ls -l to list all files and directories in your current directory.
now you should be logged in
Commands and Usage:-

~pwd (print working directory).
~sudo su (Gives root privilege to perform tasks. Its like the run as admin in windows).
~mkdir $FNAME (This syntax is use to create a directory and here $FNAME should be the name of the folder that you want to keep).
~cd $DIR (This means to change your directory to what path you have entered instead of $DIR).
Now change directory to ./api using cd api

then open the config file using nano by using this command: nano config.js
Now input your password if you have selected password authentication and hit enter.