summaryrefslogtreecommitdiffstats
path: root/notcqst.py
blob: 9d7cdef72d79efce7a76e9b18fe1328db3216088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)