diff --git a/README.md b/README.md index 87d4b32..dd5aee3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 2 Chainz Twitter Bot -Posts weekly tweets to the [@bot_chainz](https://twitter.com/bot_chainz) twitter account. More information about this project at [2.chainz.rest](https://2.chainz.rest) +Posts weekly tweets to the [@bot_chainz](https://twitter.com/bot_chainz) twitter account. More information about this project at [2chainz.ansonbiggs.com](https://2chainz.ansonbiggs.com) ## Usage diff --git a/tweet/__init__.py b/tweet/__init__.py index a71778f..f3da70b 100644 --- a/tweet/__init__.py +++ b/tweet/__init__.py @@ -11,7 +11,8 @@ def main(mytimer: func.TimerRequest) -> None: # Authenticate to Twitter auth = tweepy.OAuthHandler(keys.keys["API"], keys.keys["API_SECRET"]) auth.set_access_token( - keys.keys["TOKEN"], keys.keys["TOKEN_SECRET"], + keys.keys["TOKEN"], + keys.keys["TOKEN_SECRET"], ) # Create API object @@ -20,8 +21,8 @@ def main(mytimer: func.TimerRequest) -> None: tries = 0 while tweeted == False and tries < 10: try: - quote = r.get("https://api.chainz.rest/quote").json()["quote"] - alias = r.get("https://api.chainz.rest/alias").json()["alias"] + quote = r.get("https://chainz-rest.azurewebsites.net/quote").json()["quote"] + alias = r.get("https://chainz-rest.azurewebsites.net/alias").json()["alias"] api.update_status(status=f"{quote} - {alias}\n") tweeted = True