From b22fa263c1096eb3c011beda73db98ee22b2e6c4 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 17 Jun 2018 01:43:39 +0530 Subject: [PATCH] Remove /dc --- command_list.txt | 1 - webhook.php | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/command_list.txt b/command_list.txt index f591678..7f5b61f 100644 --- a/command_list.txt +++ b/command_list.txt @@ -2,7 +2,6 @@ question - Get a random question word - Get a random word words - Get n random words kys - Kill yourself -dc - Check availability of .com domain coin - Tosses a coin wiki - search the Arch wiki is - Is diff --git a/webhook.php b/webhook.php index 7816c10..7945b57 100644 --- a/webhook.php +++ b/webhook.php @@ -144,19 +144,6 @@ function rand_words($onewordmode) { } } -// Checks if the domain is available -function domain_checker() { - global $command_list; - if (isset($command_list[1])) { - $title=$command_list[1]; - $title .= '.com'; - $title = escapeshellarg($title); - exec("whois $title | grep 'No match' &> /dev/null && echo Domain Available || echo Domain Not Available", $output); - $post_text = $title ." " . implode(' ', $output); - send_text($post_text); - } -} - function rand_question() { $questions = file('rand_questions.txt'); @@ -270,10 +257,6 @@ $modules = array( "command" => "/words", "function" => "rand_words(0);" ), - array( - "command" => "/dc", - "function" => "domain_checker();" - ), array( "command" => "/question", "function" => "rand_question();"