Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PostCommand(BaseCommand):
- def __init__(self):
- super(PostCommand, self).__init__('post', 'Post to FriendFeed.')
- def __call__(self, user, prot, args, session):
- ffsession = friendfeed.FriendFeed(user.nickname, user.remotekey)
- d = threads.deferToThread(ffsession.publish_message,str(args))
- d.addCallback(self._postCallback)
- def _postCallback(self,result):
- prot.send_plain(user.jid, "Post Result: %s" % str(result))
Add Comment
Please, Sign In to add comment