First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| #!/usr/bin/env node | |
| function execute(command) { | |
| const exec = require('child_process').exec | |
| exec(command, (err, stdout, stderr) => { | |
| process.stdout.write(stdout) | |
| }) | |
| } |
| const { Client } = require('whatsapp-web.js'); | |
| const qrCode = require('qrcode'); | |
| const http = require('http'); | |
| const request = require('request'); | |
| const client = new Client(); | |
| const stop = "\n\n===============\nBalas pesan ini dengan *stop* untuk berhenti automasi Covid19" | |
| const penggunaAksi = new Map(); |
| <?php | |
| // Converts a number into a short version, eg: 1000 -> 1k | |
| // Based on: http://stackoverflow.com/a/4371114 | |
| function number_format_short( $n, $precision = 1 ) { | |
| if ($n < 900) { | |
| // 0 - 900 | |
| $n_format = number_format($n, $precision); | |
| $suffix = ''; | |
| } else if ($n < 900000) { |