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