3 subscribers
88 photos
9 videos
61 files
64 links
Test
Download Telegram
Now move to the Directory where you extracted the bot
Now in that Directory there Will be A discord folder. Move to discord folder using cd Discord/discord and if you list the contents in this directory using the ls command you can see a file named config.js open it using nano config.js
Now visit https://discord.com/developers/applications and click on New Application button.
Name your application
Now move to OAuth2 Tab.
Click to reveal. Then Copy your client secret.
Now move to the Bot tab and click on Add Bot and then click on Yes, do it!.
Choose your bot's username and then click on reveal token and copy the token.
Now back to the CMD or Terminal Window where nano is opened.

Edit the following in the config.js :-

apiurl: 'http://INPUT_YOUR_VPS_IP:1337',
apipassword: INPUT_THE_PASS_YOU_CHOOSED_BEFORE',

discordtoken: 'INPUT_YOUR_BOT_TOKEN',
secretpassword: 'INPUT_YOUR_CLIENT_SECRET'
Now in Discord got back to OAuth2 and open URL Generator
Then Check these two boxes
and copy your generated URL.
And then open your copied URL and add the bot to the server we just created and click on Authorize as Administrator.
Now In Discord folder in cmd or terminal run the command npm i and then run npm start.
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