Skip to content

Instantly share code, notes, and snippets.

View pratyush247's full-sized avatar

Pratyush singh pratyush247

View GitHub Profile
@ThiefMaster
ThiefMaster / auth.py
Created August 21, 2012 22:10
Flask-IRC example
from flask.ext.irc import BotModule, CommandAborted
from exodus import login_required, db
auth = BotModule('Auth', __name__)
@auth.command('addhost')
def addhost(source, channel):
"""Show the URL to connect your host with your account.
This command shows you the URL to associate your hostname with an account.