You are on page 1of 1

SCRIPT ON LOGIN PPP

:local nama "$user";


:local bot "BOT-ID";
:local chat "CHAT-ID";
:local server "NAMA-SERVER";
:local ips [/ppp active get [find name=$nama] address];
:local up [/ppp active get [find name=$nama] uptime];
:local caller [/ppp active get [find name=$nama] caller-id];
:local service [/ppp active get [find name=$nama] service];
:local active [/ppp active print count];
:local datetime "Tanggal: $[/system clock get date] %0AJam: $[/system clock get
time]";
:local lastdisc [/ppp secret get [find name=$user] last-disconnect-reason];
:local lastlogout [/ppp secret get [find name=$user] last-logged-out];
:local lastcall [/ppp secret get [find name=$user] last-caller-id];
/tool fetch
url="https://api.telegram.org/bot6098462287:AAGT72vM4gKwjfBI4XJhbVClfSa7OjSyzrA/
sendMessage?chat_id=2145990985$chat &text=\E2\9C\85 PPPoE LOGIN%0A$datetime%0AUser:
$user%0AIP Client: $ips%0ACaller ID: $caller%0AUptime: $up%0ATotal Active: $active
Client%0AService: $service%0ALast Disconnect Reason: $lastdisc %0ALast Logout:
$lastlogout %0ALast Caller ID: $lastcall %0AServer: $server" mode=http keep-
result=no;

SCRIPT OFF LOGIN PPP

:local nama "$user";


:local bot "BOT-ID";
:local chat "CHAT-ID";
:local server "NAMA-SERVER";
:local lastdisc [/ppp secret get [find name=$user] last-disconnect-reason];
:local lastlogout [/ppp secret get [find name=$user] last-logged-out];
:local lastcall [/ppp secret get [find name=$user] last-caller-id];
:local active [/ppp active print count];
:local datetime "Tanggal: $[/system clock get date] %0AJam: $[/system clock get
time]";
/tool fetch
url="https://api.telegram.org/bot6098462287:AAGT72vM4gKwjfBI4XJhbVClfSa7OjSyzrA/
sendMessage?chat_id=2145990985$chat&text=\E2\9D\8CPPPOE-LOGOUT %0A$datetime%0AUSER:
$user%0ALast Disconnect Reason: $lastdisc %0ALast Logout: $lastlogout %0ALast
Caller ID: $lastcall %0ATotal active: $active Client %0AServer: $server" keep-
result=no;

You might also like