* This function sends the client the list of available icons.
()
| 97 | * This function sends the client the list of available icons. |
| 98 | */ |
| 99 | function sendIconScripts() { |
| 100 | IO_SERVER.emit( |
| 101 | "icons", |
| 102 | LIBRARIES.FS.readdirSync( |
| 103 | LIBRARIES.Path.join(__dirname, "public", "js", "icons") |
| 104 | ).filter((file) => file.endsWith(".js")) |
| 105 | ); |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * This function returns a random string of characters. |