Don't log pings.

master
Zed A. Shaw 2 years ago
parent 0d045b74df
commit 049a2dbebb
  1. 3
      ljsthw-bot.js

@ -1,10 +1,8 @@
import { Client, Intents } from "discord.js"; import { Client, Intents } from "discord.js";
import assert from "assert"; import assert from "assert";
import { TOKEN, chat_secret } from "./secrets/discord.js"; import { TOKEN, chat_secret } from "./secrets/discord.js";
import http from "http";
import { io } from "socket.io-client"; import { io } from "socket.io-client";
const server = http.createServer();
const socket = io("ws://localhost:5001"); const socket = io("ws://localhost:5001");
socket.io.on("error", (error) => { socket.io.on("error", (error) => {
@ -12,7 +10,6 @@ socket.io.on("error", (error) => {
}); });
socket.io.on("ping", () => { socket.io.on("ping", () => {
console.log("PING");
}); });
socket.on("connect", () => { socket.on("connect", () => {

Loading…
Cancel
Save