MCPcopy Create free account
hub / github.com/chrxh/alien / createNewUserMessageWithGpuInfo

Function createNewUserMessageWithGpuInfo

scripts/Server/activateuser.php:36–62  ·  view source on GitHub ↗

function for Discord messages

($userName, $gpu)

Source from the content-addressed store, hash-verified

34
35 // function for Discord messages
36 function createNewUserMessageWithGpuInfo($userName, $gpu) {
37 return json_encode([
38 "username" => "alien-project",
39 "avatar_url" => "https://alien-project.org/alien-server/logo.png",
40 "content" => "",
41 "embeds" => [
42 [
43 "author" => [
44 "name" => "New simulator added to the database",
45 "icon_url" => "https://alien-project.org/alien-server/userpic.png"
46 ],
47 "fields" => [
48 [
49 "name" => "Name",
50 "value" => $userName,
51 "inline" => true
52 ],
53 [
54 "name" => "Powered by",
55 "value" => $gpu,
56 "inline" => true
57 ]
58 ]
59 ]
60 ]
61 ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
62 }
63
64 function createNewUserMessageWithoutGpuInfo($userName) {
65 return json_encode([

Callers 1

activateuser.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected