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.

Revisions

  1. whoishusni created this gist May 8, 2018.
    5 changes: 5 additions & 0 deletions mikro.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    :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