Compare commits

..

No commits in common. "45b613ca9bb326521734b82aed0f275b02f2b3fa" and "45ffed60e277ef5368d713411082eb13bb43d4d3" have entirely different histories.

2 changed files with 0 additions and 25 deletions

View File

@ -7,7 +7,6 @@ wiki - Search Wikipedia
arch_wiki - Search the Arch wiki arch_wiki - Search the Arch wiki
insult - As expected, insults insult - As expected, insults
weebify - Weebifies the given text weebify - Weebifies the given text
absurdify - mAke tExT aBSUrd
is - Is <your question> is - Is <your question>
are - Are <your question> are - Are <your question>
can - Can <your question> can - Can <your question>

View File

@ -411,26 +411,6 @@ function weebify() {
send_text($text, true); send_text($text, true);
} }
function absurdify() {
global $decoded;
global $command_list;
if(count($command_list) <= 1){
send_text("Need text to absurdify. Send /absurdify text", true);
return;
}
$chars = str_split(preg_replace('/^\/[^ ]+ /', '', strtolower($decoded->{"message"}->{"text"})));
$text = "";
foreach($chars as $char){
if (rand(0,1) == 0){
$text .= strtolower($char);
}
else {
$text .= strtoupper($char);
}
}
send_text($text, true);
}
// Get JSON from post, store it and decode it. // Get JSON from post, store it and decode it.
$var = file_get_contents('php://input'); $var = file_get_contents('php://input');
$decoded = json_decode($var); $decoded = json_decode($var);
@ -538,10 +518,6 @@ $modules = array(
array( array(
"command" => "/weebify", "command" => "/weebify",
"function" => "weebify();" "function" => "weebify();"
),
array(
"command" => "/absurdify",
"function" => "absurdify();"
) )
); );