summaryrefslogtreecommitdiffstats
path: root/notcqst.py
diff options
context:
space:
mode:
Diffstat (limited to 'notcqst.py')
-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)