MLBB SENDVC CODE
Code By Justine Agcanasunknown
javascript
2 years ago
694 B
12
Indexable
Never
if (input.startsWith(">sendvc")){ let data = input.split(" "); let id = data[1]; const https = require('https'); const got = require('got'); got.get("https://api.mobilelegends.com/mlweb/sendMail?roleId="+id+"&language=en") .then(res=>{ var resp = JSON.parse(res.body); var code = resp.code; var message = resp.message; switch (code){ case 0: api.sendMessage("Verefication sent", event.threadID, event.messageID); break; default: api.sendMessage("⚠️Error code: "+code+"\n⚠️Error message: "+message, event.threadID,event.messageID); } }) }