3 subscribers
88 photos
9 videos
61 files
64 links
Test
Download Telegram
Run this apt install nodejs -y
Run apt install npm -y
Now after install complete run npm i in the api directory.
If you face any errors in npm i

Run these commands:-

apt install git apache2 nano yarn nodejs -yf

npm install -g npm@latest

npm install --silent

npm audit fix --force

npm config set false --global

npm config set fund false

and after running these run npm i

thanks to @f4c3r100 for the fix
Run npm start and wait for 30-40 seconds.
Now open another cmd window or terminal and connect to your server using ssh key/password and give sudo privileges same as before
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.