Do not allow /kys for @quadnite_bot

This commit is contained in:
Ceda EI 2018-08-08 20:30:46 +05:30
parent 39b25478d4
commit 10b02dd0f8
1 changed files with 7 additions and 2 deletions

View File

@ -221,8 +221,13 @@ function kys() {
}
elseif (isset($command_list[1])){
$username = $command_list[1];
$random_kys = preg_replace('/##name##/', $username, $random_kys);
send_text($random_kys);
if ($username == "@quadnite_bot" || $username == "Quadnite" || $username == "quadnite"){
send_text("I can't be killed.", true);
}
else {
$random_kys = preg_replace('/##name##/', $username, $random_kys);
send_text($random_kys);
}
}
else {
send_text("Do you want to kill yourself?\n\nIf no, reply to someone with /kys to kill them.", true);