Remove /dc

This commit is contained in:
Ceda EI 2018-06-17 01:43:39 +05:30
parent f1775f79e0
commit b22fa263c1
2 changed files with 0 additions and 18 deletions

View File

@ -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 <your question>

View File

@ -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();"