Last active
December 26, 2015 17:19
-
-
Save myuon/7185784 to your computer and use it in GitHub Desktop.
maletterプラグイン(cf.https://github.com/myuon/maletter)
plugin/以下に保存して起動
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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