diff options
Diffstat (limited to 'notcqst.py')
-rw-r--r-- | notcqst.py | 17 |
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) |