Created
December 20, 2011 11:10
-
-
Save giginet/1501228 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # | |
| # /Users/giginet/Desktop/azui.py | |
| # created by giginet on 2011/12/20 | |
| # | |
| import random | |
| import twoauth | |
| class Azui(object): | |
| AZUI = ['Azusayumi_', 'st_e3'] | |
| def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret): | |
| self.tw = twoauth.api(consumer_key, consumer_secret, access_token, access_token_secret) | |
| def say(self): | |
| self.tw.status_update(u'@%s なに、体位の話?[%d]' % (random.choice(self.AZUI), random.randint(0, 100))) | |
| if __name__ == '__main__': | |
| g = Azui(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET) | |
| g.say() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment