wordpress.org/common/includes/slack/props/test.php
Michael Adams (mdawaffe) 98aad54877 Slack: /props command.
Does not include the actual endpoint yet


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@2154 74240141-8908-4e6f-9713-ba540dce6ec7
2015-12-03 16:38:54 +00:00

25 lines
558 B
PHP

<?php
namespace Dotorg\Slack\Props;
$config = dirname( dirname( dirname( __DIR__ ) ) ) . '/dotorg/slack/props.php';
if ( file_exists( $config ) ) {
// If the endpoint exists, use it to load everything
require( $config );
} else {
// Otherwise, load stuff manually
require dirname( dirname( __DIR__ ) ) . '/slack-config.php';
require __DIR__ . '/lib.php';
}
$data = array(
'token' => WEBHOOK_TOKEN,
'user_name' => 'nb',
'text' => 'mdawaffe very props',
'command' => '/props',
'user_id' => 'U02S3PS2B',
'team_id' => '1',
);
run( $data, true );