One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<?php | |
// Authorized team tokens that you would need to get when creating a slash command. Same script can serve multiple teams, just keep adding tokens to the array below. | |
$valid_tokens = array( | |
"123asdzxcvasdfasdwasdfas", // key 1 | |
"234xdfqadfsdfasdfasfasdf" // key 2 | |
); | |
if (!in_array($_REQUEST['token'], $valid_tokens)) { | |
bot_respond(":no_good: *Unauthorized token!* Feel free to grab a copy of this script and host it yourself."); |
#Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542> | |
function Test-RebootRequired | |
{ | |
$result = @{ | |
CBSRebootPending =$false | |
WindowsUpdateRebootRequired = $false | |
FileRenamePending = $false | |
SCCMRebootPending = $false | |
} |