Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :local chat "XXXXXXXX";
- :local bot "XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
- :local mac $"mac-address";
- :local nama "$user";
- :local datetime "$[/system clock get date] Jam: $[/system clock get time]";
- :local uptime [/ip hotspot user get [find name="$nama"] uptime];
- :local host [/ip dhcp-server lease get [find mac-address="$mac"] host-name];
- :local profile [/ip hotspot user get [find name="$nama"] profile];
- :local loby [/ip hotspot active get [find user="$nama"] login-by];
- :local bin [/ip hotspot user get [find name="$nama"] bytes-in];
- :local bout [/ip hotspot user get [find name="$nama"] bytes-out];
- :local limit [/ip hotspot user get [find name="$nama"] limit-bytes-total];
- :local totq [(($limit)/1048576)];
- :local qterpakai [((($bin)+($bout))/1048576)];
- :local sisa [($totq-($bin+$bout)/1048576)];
- :local exp [/ip hotspot user get [find name="$nama"] comment];
- :local active [/ip hotspot active print count-only];
- /tool fetch url="https://api.telegram.org/bot$bot/sendMessage\?chat_id=$chat&text================================%0A DEVICE LOGIN %0A=============================== %0A- Kode Voucher : $nama%0A- Waktu Login : $datetime %0A- IP Address : $address%0A- Mac Address : $mac%0A- Device : $host%0A- Login By : $loby%0A- Paket : $profile%0A- Waktu Terpakai : $uptime%0A- Jumlah Kuota : $totq Mb%0A- Kuota Terpakai : $qterpakai Mb%0A- Sisa Kuota : $sisa Mb%0A- Expired : $exp%0A- Users Online : $active Users" mode=http keep-result=no
Add Comment
Please, Sign In to add comment