Skip to content

Instantly share code, notes, and snippets.

@e000
Created November 15, 2011 04:27
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save e000/1366139 to your computer and use it in GitHub Desktop.
Save e000/1366139 to your computer and use it in GitHub Desktop.
(lambda n,s,I:n.classobj('h',(),dict(__init__=(lambda M,S,P,C:M.__dict__.update(
dict(R=(S,P),H=C,O=s.socket()))),C=(lambda M:(M.O.connect(M.R),setattr(M,'D',M.O
.makefile()),setattr(M,'S',(lambda l: M.O.send('%s\r\n'%l))),M.S("NICK hue"),M.S
("USER a b c d :LOL!"),setattr(M,'R',lambda n,m: M.S('PRIVMSG %s :%s'%(n,m))),M.
P())),G = (lambda M,S:S.split(' :',1)[1] if' :'in S else ''),P=(lambda M:next(I.
dropwhile((lambda Lu:((lambda L:((lambda: M.S("PONG :%s"%M.G(L))if L.startswith(
'PING')else(lambda P,G,S:({'001':(lambda: M.S('JOIN %s'%M.H)),'PRIVMSG':(lambda:
M.HC(L[1:].split('!',1),P[2],G[1:].split(),G)if G.startswith('!')else None)}.get
(P[1],lambda: None)())if len(P)>1 else None)(L.split(),M.G(L),M.O))()))(Lu.strip
()),True)[1]),iter(M.D)),None)),HC=(lambda M,(N,H),C,P,L: {'hello':lambda:M.R(C,
"HELLO, %s"%(N)),'hack':lambda:M.R(C, "THE PLANET!!!")}.get(P[0], lambda: None)(
)))))(__import__('new'),__import__('socket'),__import__('itertools'))('irc.wtfu'
'x.net',6667,"#testbot").C()
@Niriel
Copy link

Niriel commented Nov 16, 2011

What the hell ?

@ddasilva
Copy link

λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ λ

@rtyler
Copy link

rtyler commented Nov 16, 2011

Nice imports

@Atreusion
Copy link

i approve of this... monstrosity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment