GithubHelp home page GithubHelp logo

sochat's Introduction

Stack Overflow Chat to IRC Server

this tool exposes an IRC server on port 6667 for localhost. Connect to it using your favorite IRC client and you'll be able to access all Stack Overflow channels.

screenshot

Disclaimer

This tool is really early stage, so it is still ugly and buggy, and may not work well. So be warned that you may get banned from SO, get pwned by the russian mafia or attacked by a swarm of hungry trolls. I won't take any responsibility!

Build

to build the tool for development:

% pip install zc.buildout
% buildout

Use

once you've built it, it's easy:

% bin/soirc_server

then open your favorite IRC client and connect to it:

% irssi -c 127.0.0.1 -p 6667 -w PASSWORD -n LOGIN

where PASSWORD is your stackoverflow password and LOGIN your stackoverflow login (which usually is your email). It's only supporting StackExchange openid service at the time being, though it's easy to switch to google openid.

Implemented

  • login to SO using openid
  • join one channel
  • talk and lurk that channel
  • commands:
  • /whois
  • /whowas
  • /who
  • /names
  • /join
  • /list (which gives only the list of chans from chat.stackoverflow.com mainpage)
  • translates html from SO Chat server to markdown
  • breaks multiline messages in several messages

Known bugs (or bugs-alike)

  • no command line argument parsing (hint: add docopt), which could solve:
  • can only login through Stack Overflow OpenID (Google is supported as well but not available)
  • cannot change port
  • cannot change host
  • cannot change cookiejar
  • only one user can use the service
  • if two users connect โ†’ undefined/unknown behaviour (it may kill pandas)
  • there's a lot of exceptions in the log to be found
  • there's a lot of code that I'm not sure it's really useful
  • it's all in one file, it needs more modularity, dude!
  • only one chan can be joined at a time, that sucks, uh?
  • only one chat server can be connected to at a time
  • it could be possible to join channels on other servers as well... or have one server-proxy per SO chat server?
  • (with Ballmer's voice) bugs, bugs, bugs!

License

WTFPL

WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
Version 2, December 2004 

Copyright (C) 2004 Sam Hocevar <[email protected]> 

Everyone is permitted to copy and distribute verbatim or modified 
copies of this license document, and changing it is allowed as long 
as the name is changed. 

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

0. You just DO WHAT THE FUCK YOU WANT TO.

though I'm using a very permissive license, know that:

  1. if you do fork and make this work better and do not tell me, you're just a moron
  2. if you really like this software and want to thank me, well just fucking thank me!
  3. and if you fuckingly love that software, then please buy me a damn good beer!

sochat's People

Contributors

guyzmo avatar

Stargazers

ondrej avatar Rashiq avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.