Skip to content

Instantly share code, notes, and snippets.

@sharl
Created August 5, 2014 01:18
Show Gist options
  • Save sharl/a372039ac6f35323e2ae to your computer and use it in GitHub Desktop.
Save sharl/a372039ac6f35323e2ae to your computer and use it in GitHub Desktop.
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