Skip to content

Instantly share code, notes, and snippets.

@mayuki
Created April 24, 2009 10:21
Show Gist options
  • Save mayuki/101049 to your computer and use it in GitHub Desktop.
Save mayuki/101049 to your computer and use it in GitHub Desktop.
# ipy.exe for TwitterIrcGateway
import clr
import System
from System.Diagnostics import Trace
import Misuzilla.Applications.TwitterIrcGateway
import Misuzilla.Applications.TwitterIrcGateway.AddIns
import Misuzilla.Applications.TwitterIrcGateway.AddIns.Console
from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import Context
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRContext, IpyContext, DLRContextHelper
console = Misuzilla.Applications.TwitterIrcGateway.AddIns.Console.Console()
console.Attach("#ipy", Server, Session, IpyContext)
def OnBeforeUnload(sender, e):
console.Detatch()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment