| 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 | ?> |