()
| 8 | const version = getVersion(); |
| 9 | |
| 10 | async function statistics() { |
| 11 | return await axios.get("http://statistics.mcsmanager.com/", { |
| 12 | params: { |
| 13 | st, |
| 14 | version |
| 15 | }, |
| 16 | timeout: 1000 * 30 |
| 17 | }); |
| 18 | } |
| 19 | |
| 20 | // Only one request within 24 hours counts as valid statistics, and repeated requests are ignored |
| 21 | // This is set to request once every 24 hours |