summaryrefslogtreecommitdiff
path: root/src/ircd.mjs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-03-25 06:42:35 -0300
committerEuAndreh <eu@euandre.org>2024-03-25 06:44:18 -0300
commit077b81b2bd2c0d418635b265b35f582d68cec16a (patch)
treeed3c928ea3b1d5df539b6e1902ab418caa937672 /src/ircd.mjs
parentsrc/hero.mjs: Retire code (diff)
downloadpapod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.gz
papod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.xz
Node.js -> Go
Diffstat (limited to 'src/ircd.mjs')
-rw-r--r--src/ircd.mjs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ircd.mjs b/src/ircd.mjs
deleted file mode 100644
index 1924350..0000000
--- a/src/ircd.mjs
+++ /dev/null
@@ -1,19 +0,0 @@
-import fs from "node:fs";
-import net from "node:net";
-
-import * as hero from "./hero.mjs";
-
-
-const server = net.createServer(socket => {
- socket.write("olar\r\n");
- socket.pipe(socket);
-});
-
-export const app = async path => {
- if (fs.existsSync(path)) {
- fs.unlinkSync(path);
- }
- server.listen(path, () => {
- hero.log.info({ type: "starting-server", path });
- });
-};