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

Function createNewUserMessageWithoutGpuInfo

scripts/Server/activateuser.php:64–85  ·  view source on GitHub ↗
($userName)

Source from the content-addressed store, hash-verified

62 }
63
64 function createNewUserMessageWithoutGpuInfo($userName) {
65 return json_encode([
66 "username" => "alien-project",
67 "avatar_url" => "https://alien-project.org/alien-server/logo.png",
68 "content" => "",
69 "embeds" => [
70 [
71 "author" => [
72 "name" => "New simulator added to the database",
73 "icon_url" => "https://alien-project.org/alien-server/userpic.png"
74 ],
75 "fields" => [
76 [
77 "name" => "Name",
78 "value" => $userName,
79 "inline" => true
80 ]
81 ]
82 ]
83 ]
84 ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
85 }
86?>

Callers 1

activateuser.phpFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected