Skip to content

Instantly share code, notes, and snippets.

@mayuki
Created October 20, 2009 02:39
Show Gist options
  • Select an option

  • Save mayuki/213944 to your computer and use it in GitHub Desktop.

Select an option

Save mayuki/213944 to your computer and use it in GitHub Desktop.
import clr
from Misuzilla.Applications.TwitterIrcGateway import Status, Statuses, User, Users, Utility
from Misuzilla.Applications.TwitterIrcGateway.AddIns import IConfiguration
from Misuzilla.Applications.TwitterIrcGateway.AddIns.Console import ConsoleAddIn, Console, Context
from Misuzilla.Applications.TwitterIrcGateway.AddIns.DLRIntegration import DLRIntegrationAddIn, DLRBasicConfiguration, DLRContextHelper
def OnPreSendUpdateStatus(sender, e):
e.Text = e.Text + " (footer text)"
# 後片付け
def OnBeforeUnload(sender, e):
Session.PreSendUpdateStatus -= OnPreSendUpdateStatus
Session.PreSendUpdateStatus += OnPreSendUpdateStatus
Session.AddInManager.GetAddIn[DLRIntegrationAddIn]().BeforeUnload += OnBeforeUnload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment