summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcqst <cqst@cqstia.com>2025-08-22 12:30:37 -0700
committercqst <cqst@cqstia.com>2025-08-22 12:30:37 -0700
commit7fd250aff7d12d3712d06e87073ec1a3320047ad (patch)
treeda37af7d165349ccd03f0875b6df60c9640c2f41
first commit
-rw-r--r--notcqst.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/notcqst.py b/notcqst.py
new file mode 100644
index 0000000..9d7cdef
--- /dev/null
+++ b/notcqst.py
@@ -0,0 +1,17 @@
+import socket
+
+server = "irc.libera.chat"
+channel = "##tech-tangents"
+botnick = "notcqst"
+
+irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+
+print("connecting to: " + server)
+
+irc.connect((server, 6667))
+
+irc.send(b'this should fail')
+
+while 1:
+ text = irc.rec(2040)
+ print(text)