Created
August 5, 2014 01:18
-
-
Save sharl/a372039ac6f35323e2ae to your computer and use it in GitHub Desktop.
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
class MentionWithURLQuoteCommand(TypableMapCommand): # {{{2 | |
''' 最近対応したインライン引用をする発言を行います ''' | |
def __init__(self, manager, processor, msg, status, args): | |
TypableMapCommand.__init__(self, manager, processor, msg, status, args) | |
self.include_user = False | |
def process(self): | |
text = '%s ' % self.args if self.args else '' | |
url = 'https://twitter.com/%s/status/%s' % (self.status.User.ScreenName, self.status.Id) | |
update_text = '%s\n%s' % (text, url) | |
self.notice(update_text) | |
self.update_deferred(update_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment