Skip to content

Commit c2aa839

Browse files
authored
Update serverWarn.php
1 parent 346c90f commit c2aa839

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

serverWarn.php

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
if($totalUsed >= $total - 1024 && $total != 0){
5353
if(!isset($usersInfo[$uuid])){
5454
$info['usersInfo'][$uuid] = "";
55-
sendMessage($Config['report_channel'], "حجم بسته ی کاربر زیر رو به اتمام است\nآیپی سرور: $serverIp\nuuid: $uuid\nیوزرنیم: $remark\nپورت: $port");
55+
sendMessage($Config['report_channel'], "");
5656
}
5757
}elseif($expiryTime - time() <= (24 * 60 * 60) && $expiryTime != 0){
5858
if(!isset($usersInfo[$uuid])){
5959
$info['usersInfo'][$uuid] = "";
60-
sendMessage($Config['report_channel'], "زمان بسته ی کاربر زیر رو به اتمام است\nآیپی سرور: $serverIp\nuuid: $uuid\nیوزرنیم: $remark\nپورت: $port");
60+
sendMessage($Config['report_channel'], "");
6161
}
6262
}else{
6363
unset($arr['userInfo']['ryan']);
@@ -121,12 +121,30 @@
121121
if($total - $totalUsed < - ($mbLeft * 1024 * 1024) && $total != 0){
122122
if(!isset($usersInfo[$uuid])){
123123
$info['usersInfo'][$uuid] = "";
124-
sendMessage($Config['report_channel'], "حجم بسته ی کاربر $userId\nuuid: $uuid");
124+
sendMessage($Config['report_channel'], "
125+
❌ | ☑️ کاربر زیر 85 درصد از حجم خورد را مصرف کرده است :
126+
127+
🔅کلید کاربر: $uuid
128+
🔅نام کاربر: $remark
129+
👽 پورت کاربر : $port
130+
131+
🆔 @wizwizdev
132+
133+
");
125134
}
126135
}elseif($expiryTime - time() <= ($hourLeft * 60 * 60) && $expiryTime != 0){
127136
if(!isset($usersInfo[$uuid])){
128137
$info['usersInfo'][$uuid] = "";
129-
sendMessage($Config['report_channel'], "زمان بسته ی کاربر $userId\nuuid: $uuid");
138+
sendMessage($Config['report_channel'], "
139+
⏰ | 🔌 زمان بسته کاربر رو به پایان است:
140+
141+
🔑کلید کاربر: $uuid
142+
🧑‍💼نام کاربر: $remark
143+
💡 پورت کاربر : $port
144+
145+
🆔 @wizwizdev
146+
147+
");
130148
}
131149
}else{
132150
unset($arr['userInfo']['ryan']);

0 commit comments

Comments
 (0)