Skip to content

Instantly share code, notes, and snippets.

@myuon
Last active December 26, 2015 17:19
Show Gist options
  • Save myuon/7185784 to your computer and use it in GitHub Desktop.
Save myuon/7185784 to your computer and use it in GitHub Desktop.
maletterプラグイン(cf.https://github.com/myuon/maletter) plugin/以下に保存して起動
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import sys
import os
sys.path.append(os.pardir)
from PyQt4 import QtGui, QtCore
import datetime
from default import *
class Otsukare(LayoutPlugin):
def __init__(self, mainwindow):
super(Otsukare, self).__init__(mainwindow)
def on_status(self, status):
if status.has_key('event') == False:
if status.has_key('text') == True:
if status[u'user'][u'screen_name'] == u"Maleic1618":
self.mw.update_status(u"あっまれいんさんだ!院試お疲れ様です!(タイムスタンプ:{now})".format(now=datetime.datetime.now().strftime("%H:%M:%S")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment