Advertisement
nugrohoe_ku

How to make whatsap bot

Jan 30th, 2022
1,770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. How to make whatsap bot in vps | Ubuntu 20.04
  2.  
  3. 1. Change Repo ubuntu 20.04 (*optional):
  4. $ nano /etc/apt/source.list
  5.  
  6. deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
  7. deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
  8. deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  9. deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
  10. deb http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
  11.  
  12. 2. Login your vps && Update your ubuntu server :
  13. $ apt update -y && apt upgrade -y
  14.  
  15. 3. Install dependency :
  16. $ apt install ffmpeg webp imagemagick git -y
  17.  
  18. 4. (*optional) for ipv6 vps, you must install warp :
  19. $ wget -N https://cdn.jsdelivr.net/gh/fscarmen/warp/menu.sh && bash menu.sh
  20.  
  21. 5. Go to Home (opsional):
  22. $ cd $HOME
  23.  
  24. 6. Download nodejs, for now i'm using stable version (v16.13.2) and extract to /opt directory :
  25. $ wget https://nodejs.org/dist/v16.13.2/node-v16.13.2-linux-x64.tar.xz
  26.  
  27. 7. Extrack Nodejs :
  28. $ tar -xf node-v16.13.2-linux-x64.tar.xz
  29.  
  30. 8. Move to /opt :
  31. $ mv node-v16.13.2-linux-x64 /opt/
  32.  
  33. 9. edit file ~/.profile :
  34. $ nano ~/.profile
  35.  
  36. 10. add this two lines then save :
  37. export NODEJS_HOME=/opt/node-v16.13.2-linux-x64/bin
  38. export PATH=$NODEJS_HOME:$PATH
  39.  
  40. 11. after Save, don't forget to source your .profile file :
  41. $ source ~/.profile
  42.  
  43. 12. Download script bot :
  44. $ git clone https://github.com/bastomiadi/Wangsap.git
  45.  
  46. 13. go to Wangap directory :
  47. $ cd Wangsap
  48.  
  49. 14. Install library and dependency project :
  50. $ npm install
  51.  
  52. 15. *optional if you found vulnerabilities:, just audit fix
  53. $ npm audit fix
  54.  
  55. 16.Run Your bot:
  56. $ node .
  57.  
  58. 17. Scan your QRCODE with your device to make your number as a bot, until success
  59.  
  60. 18. And your bot ready to use, to test your bot work, just send a text to your bot number,type menu then enter.
  61.  
  62. 19. how to make your bot script always running in background :
  63.  
  64. - stop your bot script with click ctrl + c
  65. - go to your project bot whatsapp and install package :
  66. $ npm install forever -g
  67. - type then enter :
  68. $ forever start index.js
  69. - now your bot run in background, so you can exit or logout from your vps and bot still running.
  70. - if you want to stop your bot :
  71. $ forever stop index.js
  72.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement