smsc.ru is first sms provider of this script. Send pull requests with other sms providers and messages.
Clone or download this repository and run:
npm install
Copy config.example.js to config.js and modify it like that:
module.exports = {
phones: [
79999999999,
79999999998,
79999999997,
],
urls: [
'http://ёбаный.site', // your url 1
'http://api.ёбаный.site', // your url 2
],
smsc: { // your account credentials from smsc.ru
login: 'YOUR_SMSC_LOGIN',
password: 'YOUR_SMSC_PASSWORD',
}
};
Add this script to cron:
crontab -e
*/5 * * * * node /path/to/mon/index.js