Skip to content

Instantly share code, notes, and snippets.

View krootca's full-sized avatar
❤️‍🔥
Per Aspera Ad Astra

krootca krootca

❤️‍🔥
Per Aspera Ad Astra
View GitHub Profile
@Bakies
Bakies / irc.py
Created June 18, 2012 00:10
Python connect to IRC
import socket, string, time, thread
SERVER = ''
PORT = 6667
NICKNAME = ''
CHANNEL = ''
def main():
global IRC
IRC = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
IRC.connect((SERVER, PORT))