Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pratyush247's full-sized avatar

Pratyush singh pratyush247

View GitHub Profile
@pratyush247
pratyush247 / auth.py
Created January 13, 2016 15:50 — forked from ThiefMaster/auth.py
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.