Compare commits
2 Commits
dcd119db86
...
8158c727bc
Author | SHA1 | Date |
---|---|---|
Amber McCloughan | 8158c727bc | |
Amber McCloughan | 96d31ba8d3 |
10
tweetbot.py
10
tweetbot.py
|
@ -8,11 +8,11 @@ from time import sleep
|
|||
from random import shuffle
|
||||
|
||||
|
||||
def get_arguments() -> Tuple[str, str, str, str]:
|
||||
consumer_key = os.environ['CONSUMER_KEY']
|
||||
consumer_secret = os.environ['CONSUMER_SECRET']
|
||||
access_token = os.environ['ACCESS_TOKEN']
|
||||
access_token_secret = os.environ['ACCESS_TOKEN_SECRET']
|
||||
def get_arguments() -> Tuple[bytes, bytes, bytes, bytes]:
|
||||
consumer_key = os.environ['CONSUMER_KEY'].encode('utf8')
|
||||
consumer_secret = os.environ['CONSUMER_SECRET'].encode('utf8')
|
||||
access_token = os.environ['ACCESS_TOKEN'].encode('utf8')
|
||||
access_token_secret = os.environ['ACCESS_TOKEN_SECRET'].encode('utf8')
|
||||
|
||||
return consumer_key, consumer_secret, access_token, access_token_secret
|
||||
|
||||
|
|
Loading…
Reference in New Issue