miércoles, 7 de mayo de 2014

erc makes you faster at jokes!

Hi, today's post is a simple sinppet I wrote to ease the pain of looking for recurrent references on the internet.

At work we use IRC heavily (it's our main channel for comunication). As you know,every platform or channel of comunication has its own processes and joke (slightly related (but interesting nonetheless): The medium is the Massage ) . So IRC is mostly about sending links to gifs and to funny images, and funny images with captions in them.

It's so simple that it doesn't even need explanation. You just have to know that all defuns named "erc-cmd-SOMETHING" will be automatically callable from erc as a /something.



(defun erc-cmd-MEME (wat)
  "Fetch links from the alist of knowledge"
  (let ((h '(("trap" "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM1KvHzrpRDpci5HCGe7mjpaRQ3uKRgNjbyTpUG6B8nG_qXnxGT2ccuskYnK_FlvsOLxX8jYIJIHsWYYAlMCqP77UaQRSrBkoILLHy3noG7cHhGcYpUrLA3iMGkczBE8FS-7G5sDuu9X_1/s1600/original.jpg"))))
    (erc-send-message (cadr (assoc wat h)))))

Combined with erc-image.el, it makes a really nice IRC experience :)


No hay comentarios: