:local nama "$user"; :local botid "bot2105140016:AAFK2SjY0lVOgDdvzYGSli4jbr7OBKlCGgs"; :local chatidgroup "-1001736163067"; :local chatidadmin "1625958596"; :local date [/system clock get date]; :local time [/system clock get time]; :local mac [/ip hotspot user get [find name="$nama"] mac-address]; :local uptime [/ip hotspot user get [find name="$nama"] uptime]; :local password [/ip hotspot user get [find name="$nama"] password]; :local profile [/ip hotspot user get [find name="$nama"] profile]; :local ratelimit [/ip hotspot user profile get [find name="$profile"] rate-limit]; :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 exp [/ip hotspot user get [find name="$nama"] comment]; :local host [/ip dhcp-server lease get [find mac-address="$mac"] host-name]; :local totq [(($limit)/1048576)]; :local qterpakai [((($bin)+($bout))/1048576)]; :local terpakai ($qterpakai / 1024); :local sisa [($totq-($bin+$bout)/1048576)]; :local tersisa ($sisa / 1024); :local upload (($bin / 1048576) / 1024); :local download (($bout / 1048576) / 1024); :local active [/ip hotspot active print count-only]; :local laporan "-%20Hotspot%20LOGOUT%20@Naufal.ID%0A-%20Pada%20Tanggal%20:%20$date%0A-%20Jam%20/%20Waktu%20:%20$time%20WIB%0A-%20Kode%20Voucher%20:%20$nama%0A-%20Password%20Voucher%20:%20$password%0A-%20IP%20Address%20:%20$address%0A-%20MAC%20Add%20:%20$mac%0A-%20Nama%20Perangkat%20Pengguna%20:%0A%20%20$host%0A-%20Paket%20:%20$profile%0A-%20Waktu%20Terpakai%20:%20$uptime%0A-%20Speed%20Internet%20:%20$ratelimit%0A-%20Batas%20Kuota%20:%20Unlimited%0A-%20Kuota%20Upload%20:%20$upload%20GB%0A-%20Kuota%20Download%20:%20$download%20GB%0A-%20Total%20Kuota%20:%20$terpakai%20GB%0A-%20Sisa%20Kuota%20:%20Unlimited%0A-%20Berlaku%20Sampai%20Dengan%20:%0A%20%20$exp%20WIB%0A-%20User%20Aktif%20:%20$active%20Perangkat"; :local expenditurebulan [/system script get [find name="expenditurebulan"] source]; :local expenditurehari [/system script get [find name="expenditurehari"] source]; :local expenditureminggu [/system script get [find name="expenditureminggu"] source]; :local expendituretahun [/system script get [find name="expendituretahun"] source]; :local expendituretotal [/system script get [find name="expendituretotal"] source]; :local hotspotbulanan [/system script get [find name="hotspotbulanan"] source]; :local hotspotharian [/system script get [find name="hotspotharian"] source]; :local incomebulan [/system script get [find name="incomebulan"] source]; :local incomehari [/system script get [find name="incomehari"] source]; :local incomeminggu [/system script get [find name="incomeminggu"] source]; :local incometahun [/system script get [find name="incometahun"] source]; :local incometotal [/system script get [find name="incometotal"] source]; :local saldobulan [/system script get [find name="saldobulan"] source]; :local saldohari [/system script get [find name="saldohari"] source]; :local saldominggu [/system script get [find name="saldominggu"] source]; :local saldotahun [/system script get [find name="saldotahun"] source]; :local saldototal [/system script get [find name="saldototal"] source]; :local rekapan "~%20Manajemen%20Keuangan%20@Naufal.ID%20~%0A%0AHOTSPOT%20(voucher)%20TOTAL%20:%0A-%20Hari%20Ini%20$hotspotharian%0A-%20Bulan%20Ini%20$hotspotbulanan%0A%0APPPOE%20(home%20wi-fi)%20Hari%20Ini%20:%0A-%20Pendapatan%20$incomehari%0A-%20Pengeluaran%20$expenditurehari%0A-%20Total%20Saldo%20$saldohari%0A%0APPPOE%20(home%20wi-fi)%20Minggu%20Ini%20:%0A-%20Pendapatan%20$incomeminggu%0A-%20Pengeluaran%20$expenditureminggu%0A-%20Total%20Saldo%20$saldominggu%0A%0APPPOE%20(home%20wi-fi)%20Bulan%20Ini%20:%0A-%20Pendapatan%20$incomebulan%0A-%20Pengeluaran%20$expenditurebulan%0A-%20Total%20Saldo%20$saldobulan%0A%0APPPOE%20(home%20wi-fi)%20Tahun%20Ini%20:%0A-%20Pendapatan%20$incometahun%0A-%20Pengeluaran%20$expendituretahun%0A-%20Total%20Saldo%20$saldotahun%0A%0APPPOE%20(home%20wi-fi)%20TOTAL%20:%0A-%20Pendapatan%20$incometotal%0A-%20Pengeluaran%20$expendituretotal%0A-%20Total%20Saldo%20$saldototal%0A%0ASetoran%20INTERNET%20IndiHome%201%20:%0A-%20Internet%20:%20Rp.%20583.000%20(tgl%2015)%0A-%20Renew%201%20:%20Rp.%20132.000%20(tgl%2015)%0A-%20Renew%202%20:%20Rp.%20132.000%20(tgl%2023)%0A%0ASetoran%20INTERNET%20IndiHome%202%20:%0A-%20Internet%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%201%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%202%20:%20Coming%20Soon%20(tgl%2023)%0A%0ASetoran%20INTERNET%20IndiHome%203%20:%0A-%20Internet%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%201%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%202%20:%20Coming%20Soon%20(tgl%2023)%0A%0ASetoran%20INTERNET%20IndiHome%204%20:%0A-%20Internet%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%201%20:%20Coming%20Soon%20(tgl%2015)%0A-%20Renew%202%20:%20Coming%20Soon%20(tgl%2023)"; /tool fetch http-method=post url="https://api.telegram.org/$botid/sendMessage?chat_id=$chatidgroup&text=$laporan" mode=http keep-result=no; /tool fetch http-method=post url="https://api.telegram.org/$botid/sendMessage?chat_id=$chatidadmin&text=$laporan" mode=http keep-result=no; /tool fetch http-method=post url="https://api.telegram.org/$botid/sendMessage?chat_id=$chatidgroup&text=$rekapan" mode=http keep-result=no; /tool fetch http-method=post url="https://api.telegram.org/$botid/sendMessage?chat_id=$chatidadmin&text=$rekapan" mode=http keep-result=no;