Skip to content

Instantly share code, notes, and snippets.

@whoishusni
Created May 8, 2018 16:00
Show Gist options
  • Save whoishusni/a5b4be2774071e040ca7795d4d15b51a to your computer and use it in GitHub Desktop.
Save whoishusni/a5b4be2774071e040ca7795d4d15b51a to your computer and use it in GitHub Desktop.
my mikrotik script login
:local jam [/system clock get time]
:local uptime [/ip hotspot user get [find name=$user] uptime]
:local limit [/ip hotspot user get [find name=$user] limit-uptime]
:local teks "User $user Dengan IP Address $address Telah LOGIN pada Jam $jam, dan waktu yang terpakai adalah $uptime dari $limit ";
/tool fetch url="https://api.telegram.org/bot590339726:AAFnWxOfIlysJ9aFBa8Uy7WNBw69yNkLUmw/sendMessage?chat_id=356212397&text=$teks" keep-result=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment