From a2fafc1864b1631f265fb9172328369ec3ab162d Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 2 Jul 2018 14:47:08 +0530 Subject: [PATCH] Add /everyone --- webhook.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/webhook.php b/webhook.php index e740056..28b495e 100644 --- a/webhook.php +++ b/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();" ) );