Add /everyone
This commit is contained in:
parent
dc8990ba6f
commit
a2fafc1864
16
webhook.php
16
webhook.php
|
@ -133,6 +133,18 @@ function get_updated_req() {
|
|||
}
|
||||
edit_html($text);
|
||||
}
|
||||
|
||||
function everyone() {
|
||||
global $command_list;
|
||||
$text = "@ceda_ei @bryan2810 @TrueHanash @jrioln @JD_the_fish @wand_maker @Tropics888 @chickadeer @amolith @RafsD8 @quilombola @Trixity ";
|
||||
for ($i = 1; $i < count($command_list); $i++){
|
||||
$text .= $command_list[$i];
|
||||
$text .= " ";
|
||||
}
|
||||
}
|
||||
send_html($text);
|
||||
}
|
||||
|
||||
// Get JSON from post, store it and decode it.
|
||||
$var = file_get_contents('php://input');
|
||||
$decoded = json_decode($var);
|
||||
|
@ -156,6 +168,10 @@ $modules = array(
|
|||
array(
|
||||
"command" => "/add",
|
||||
"function" => "add_requirement();"
|
||||
),
|
||||
array(
|
||||
"command" => "/everyone",
|
||||
"function" => "everyone();"
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue