Remove /dc
This commit is contained in:
parent
f1775f79e0
commit
b22fa263c1
|
@ -2,7 +2,6 @@ question - Get a random question
|
||||||
word - Get a random word
|
word - Get a random word
|
||||||
words - Get n random words
|
words - Get n random words
|
||||||
kys - Kill yourself
|
kys - Kill yourself
|
||||||
dc - Check availability of .com domain
|
|
||||||
coin - Tosses a coin
|
coin - Tosses a coin
|
||||||
wiki - search the Arch wiki
|
wiki - search the Arch wiki
|
||||||
is - Is <your question>
|
is - Is <your question>
|
||||||
|
|
17
webhook.php
17
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()
|
function rand_question()
|
||||||
{
|
{
|
||||||
$questions = file('rand_questions.txt');
|
$questions = file('rand_questions.txt');
|
||||||
|
@ -270,10 +257,6 @@ $modules = array(
|
||||||
"command" => "/words",
|
"command" => "/words",
|
||||||
"function" => "rand_words(0);"
|
"function" => "rand_words(0);"
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
"command" => "/dc",
|
|
||||||
"function" => "domain_checker();"
|
|
||||||
),
|
|
||||||
array(
|
array(
|
||||||
"command" => "/question",
|
"command" => "/question",
|
||||||
"function" => "rand_question();"
|
"function" => "rand_question();"
|
||||||
|
|
Loading…
Reference in New Issue