mirror of
https://gitlab.com/ceda_ei/Quadnite-Bot
synced 2025-11-01 09:40:05 +01:00
Remove /dc
This commit is contained in:
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()
|
||||
{
|
||||
$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();"
|
||||
|
||||
Reference in New Issue
Block a user