mirror of
				https://gitlab.com/ceda_ei/Quadnite-Bot
				synced 2025-10-31 09:10:05 +01:00 
			
		
		
		
	Remove /dc
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
							
								
								
									
										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