This commit is contained in:
@ -1,13 +1,13 @@
|
||||
import { Point } from "@influxdata/influxdb-client";
|
||||
import axios from "axios";
|
||||
import { w3cwebsocket as WebsocketClient } from "websocket";
|
||||
import { InfluxWriteAPI } from "..";
|
||||
import { connectMongo } from "../db/mongo";
|
||||
import { LeaderboardSchema } from "../db/schemas/leaderboard";
|
||||
const fetch = require("node-fetch");
|
||||
|
||||
async function update() {
|
||||
const response = await fetch("https://scoresaber.com/api/players/count");
|
||||
const count = await response.text();
|
||||
const response = await axios.get("https://scoresaber.com/api/players/count");
|
||||
const count = response.data;
|
||||
|
||||
const point = new Point("scoresaber")
|
||||
.tag("type", "player_count")
|
||||
|
Reference in New Issue
Block a user