mirror of
https://gh.wpcy.net/https://github.com/WordPress/wordpress.org.git
synced 2026-05-10 23:22:58 +08:00
Does not include the actual endpoint yet git-svn-id: https://meta.svn.wordpress.org/sites/trunk@2154 74240141-8908-4e6f-9713-ba540dce6ec7
25 lines
558 B
PHP
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 );
|