Skip to content

Instantly share code, notes, and snippets.

@giginet
Created December 20, 2011 11:10
Show Gist options
  • Select an option

  • Save giginet/1501228 to your computer and use it in GitHub Desktop.

Select an option

Save giginet/1501228 to your computer and use it in GitHub Desktop.
# -*- 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